C# Class System.Runtime.InteropServices.MarshalAsAttribute

Inheritance: System.Attribute
Mostra file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Properties

Property Type Description
ArraySubType UnmanagedType
MarshalCookie String
SizeConst int
SizeParamIndex short

Public Methods

Method Description
MarshalAsAttribute ( UnmanagedType unmanagedType ) : System
MarshalAsAttribute ( short unmanagedType ) : System

Private Methods

Method Description
GetCustomAttribute ( ParameterInfo parameter ) : Attribute
GetCustomAttribute ( RuntimeFieldInfo field ) : Attribute
GetCustomAttribute ( int token, Module scope ) : Attribute
IsDefined ( ParameterInfo parameter ) : bool
IsDefined ( RuntimeFieldInfo field ) : bool
MarshalAsAttribute ( UnmanagedType val, VarEnum safeArraySubType, Type safeArrayUserDefinedSubType, UnmanagedType arraySubType, short sizeParamIndex, int sizeConst, string marshalType, Type marshalTypeRef, string marshalCookie, int iidParamIndex ) : System

Method Details

MarshalAsAttribute() public method

public MarshalAsAttribute ( UnmanagedType unmanagedType ) : System
unmanagedType UnmanagedType
return System

MarshalAsAttribute() public method

public MarshalAsAttribute ( short unmanagedType ) : System
unmanagedType short
return System

Property Details

ArraySubType public_oe property

public UnmanagedType ArraySubType
return UnmanagedType

MarshalCookie public_oe property

public String MarshalCookie
return String

SizeConst public_oe property

public int SizeConst
return int

SizeParamIndex public_oe property

public short SizeParamIndex
return short