SoapExtensionAttribute.ExtensionType 属性

定义

当在派生类中被重写时,获取 SOAP 扩展的 TypeWhen overridden in a derived class, gets the Type of the SOAP extension.

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

属性值

Type

SOAP 扩展的 TypeThe Type of the SOAP extension.

示例

下面的代码示例是属性的典型实现 ExtensionTypeThe following code example is a typical implementation of the ExtensionType property.

// 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 扩展的类型。Derived classes must override the ExtensionType property to return the type of the SOAP extension.

适用于