Share via


XmlFormatExtensionAttribute.ExtensionPoints 属性

定义

服务说明格式扩展要运行的步骤。

public:
 property cli::array <Type ^> ^ ExtensionPoints { cli::array <Type ^> ^ get(); void set(cli::array <Type ^> ^ value); };
public Type[] ExtensionPoints { get; set; }
member this.ExtensionPoints : Type[] with get, set
Public Property ExtensionPoints As Type()

属性值

Type[]

Type 数组,指定服务说明格式扩展要运行的步骤。

示例

// The YMLOperationBinding class is part of the YML SDFE, as it is the
// class that is serialized into XML and is placed in the service
// description.
[XmlFormatExtension("action", YMLOperationBinding.YMLNamespace,
    typeof(OperationBinding))]
[XmlFormatExtensionPrefix("yml", YMLOperationBinding.YMLNamespace)]
public class YMLOperationBinding : ServiceDescriptionFormatExtension
{
    private Boolean reverse;

    public const string YMLNamespace = "http://www.contoso.com/yml";

    [XmlElement("Reverse")]
    public Boolean Reverse
    {
        get { return reverse; }
        set { reverse = value; }
    }
}
' The YMLOperationBinding class is part of the YML SDFE, as it is the
' class that is serialized into XML and is placed in the service
' description.
<XmlFormatExtension("action", YMLOperationBinding.YMLNamespace, _
    GetType(OperationBinding)), _
    XmlFormatExtensionPrefix("yml", YMLOperationBinding.YMLNamespace)> _
Public Class YMLOperationBinding
    Inherits ServiceDescriptionFormatExtension
    Private _reverse As Boolean
    Public Const YMLNamespace As String = "http://www.contoso.com/yml"

    <XmlElement("Reverse")> _
    Public Property Reverse() As Boolean
        Get
            Return _reverse
        End Get
        Set(ByVal Value As Boolean)
            _reverse = Value
        End Set
    End Property

End Class

注解

可用于运行服务说明格式扩展的类型列表包括内置于 ASP.NET 中的类型,以及 Web 服务器上配置的任何自定义类型。 可以使用服务说明格式扩展运行的 ASP.NET 中内置的类型位于以下列表中:

这些类都引用 ASP.NET 生成的服务说明中的部分。

适用于