Sets the method that gets the property value.
[Visual Basic] Public Sub SetGetMethod( _ ByVal mdBuilder As MethodBuilder _ ) [C#] public void SetGetMethod( MethodBuilder mdBuilder ); [C++] public: void SetGetMethod( MethodBuilder* mdBuilder ); [JScript] public function SetGetMethod( mdBuilder : MethodBuilder );
Exception Type | Condition |
---|---|
ArgumentNullException | if mdBuilder is a null reference (in Visual Basic Nothing) |
Should throw the following exceptions but does not currently do so:
if mdBuilder is null.
if the containing type has been created using TypeBuilder.CreateType.
PropertyBuilder Class | PropertyBuilder Members | System.Reflection.Emit Namespace