GeneratedComInterfaceAttribute.StringMarshallingCustomType 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 Type ,用來控制介面上所有方法的字串引數封送處理方式。 如果屬性化介面繼承自另一個具有 GeneratedComInterfaceAttribute 的介面,它必須具有 和 StringMarshallingCustomType 的相同值 StringMarshalling 。
public:
property Type ^ StringMarshallingCustomType { Type ^ get(); void set(Type ^ value); };
C#
public Type? StringMarshallingCustomType { get; set; }
member this.StringMarshallingCustomType : Type with get, set
Public Property StringMarshallingCustomType As Type
如果指定此欄位, StringMarshalling 則不得指定或必須設定為 Custom 。
產品 | 版本 |
---|---|
.NET | 8, 9 |