XmlFormatExtensionAttribute.ExtensionPoints Właściwość

Definicja

Etapy, na których ma zostać uruchomione rozszerzenie formatu opisu usługi.

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()

Wartość właściwości

Type[]

Tablica określająca Type etap, na którym ma zostać uruchomione rozszerzenie formatu opisu usługi.

Przykłady

// 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

Uwagi

Lista dostępnych typów, za pomocą których można uruchomić rozszerzenie formatu opisu usługi, zawiera te wbudowane w ASP.NET i wszelkie typy niestandardowe skonfigurowane na serwerze sieci Web. Typy wbudowane w ASP.NET, które mogą być uruchamiane z rozszerzeniem formatu opisu usługi, znajdują się na poniższej liście:

Te klasy odnoszą się do sekcji w opisie usługi generowanych przez ASP.NET.

Dotyczy