_Type.IsMarshalByRef 属性

定义

为 COM 对象提供对 IsMarshalByRef 属性的与版本无关的访问。Provides COM objects with version-independent access to the IsMarshalByRef property.

public:
 property bool IsMarshalByRef { bool get(); };
public bool IsMarshalByRef { get; }
member this.IsMarshalByRef : bool
Public ReadOnly Property IsMarshalByRef As Boolean

属性值

如果 true 是由引用封送的,则为 Type;否则为 falsetrue if the Type is marshaled by reference; otherwise, false.

注解

此属性用于从非托管代码访问托管类,不应从托管代码调用。This property is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.IsMarshalByRef属性获取一个值,该值指示该类型是否按引用进行封送。The Type.IsMarshalByRef property gets a value indicating whether the Type is marshaled by reference.

适用于