Describes the native marshaling of the field.
[Visual Basic] Public Sub SetMarshal( _ ByVal unmanagedMarshal As UnmanagedMarshal _ ) [C#] public void SetMarshal( UnmanagedMarshal unmanagedMarshal ); [C++] public: void SetMarshal( UnmanagedMarshal* unmanagedMarshal ); [JScript] public function SetMarshal( unmanagedMarshal : UnmanagedMarshal );
Exception Type | Condition |
---|---|
InvalidOperationException | if the containing type has been created using TypeBuilder.CreateType(). |
FieldBuilder Class | FieldBuilder Members | System.Reflection.Emit Namespace