GeneratedComInterfaceAttribute.StringMarshallingCustomType 屬性

定義

取得或設定 Type ,用來控制介面上所有方法的字串引數封送處理方式。 如果屬性化介面繼承自另一個具有 GeneratedComInterfaceAttribute 的介面,它必須具有 和 StringMarshallingCustomType 的相同值 StringMarshalling

C#
public Type? StringMarshallingCustomType { get; set; }

屬性值

備註

如果指定此欄位, StringMarshalling 則不得指定或必須設定為 Custom

適用於

產品 版本
.NET 8, 9