共用方式為


SoapExtensionAttribute.ExtensionType 屬性

定義

在衍生類別中覆寫時,取得 SOAP 擴充的 Type

public:
 abstract property Type ^ ExtensionType { Type ^ get(); };
public abstract Type ExtensionType { get; }
member this.ExtensionType : Type
Public MustOverride ReadOnly Property ExtensionType As Type

屬性值

SOAP 擴充的 Type

範例

下列程式碼範例是 屬性的一般實作 ExtensionType

// Return the type of TraceExtension.
property Type^ ExtensionType 
{
   Type^ get()
   {
      return typeid<TraceExtension^>;
   }
}
// Return the type of TraceExtension.
public override Type ExtensionType
{
   get
   {
      return typeof(TraceExtension);
   }
}
' Return the type of TraceExtension.
 Public Overrides ReadOnly Property ExtensionType() As Type
     Get
         Return GetType(TraceExtension)
     End Get
 End Property

備註

衍生類別必須覆寫 屬性, ExtensionType 才能傳回 SOAP 延伸模組的類型。

適用於