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!

20.1.13 The Marshal attribute

The Marshal attribute is used to describe the marshalling format for a field, method, or parameter.

[AttributeUsage(AttributeTargets.Method | 
            AttributeTargets.Parameter | 
            AttributeTargets.Field)]
public class MarshalAttribute: System.Attribute
{
   public MarshalAttribute(UnmanagedType type) {…}
   public string Cookie;
   public Guid IID;
   public Type Marshaler;
   public UnmanagedType NativeType { get {…} }
   public int Size;
   public UnmanagedType SubType;
}

The Marshal attribute has the following behaviors: