NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PropertyBuilder.SetGetMethod

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
);

Parameters

mdBuilder
A MethodBuilder object that represents the method that gets the property value.

Exceptions

Exception Type Condition
ArgumentNullException if mdBuilder is a null reference (in Visual Basic Nothing)

Remarks

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.

See Also

PropertyBuilder Class | PropertyBuilder Members | System.Reflection.Emit Namespace