サービスの説明のフォーマット拡張用の XML 名前空間と XML 名前空間プリフィックスを設定し、XmlFormatExtensionPrefixAttribute クラスの新しいインスタンスを初期化します。
名前空間: System.Web.Services.Configuration
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
'宣言
Public Sub New ( _
prefix As String, _
ns As String _
)
'使用
Dim prefix As String
Dim ns As String
Dim instance As New XmlFormatExtensionPrefixAttribute(prefix, ns)
public XmlFormatExtensionPrefixAttribute (
string prefix,
string ns
)
public:
XmlFormatExtensionPrefixAttribute (
String^ prefix,
String^ ns
)
public XmlFormatExtensionPrefixAttribute (
String prefix,
String ns
)
public function XmlFormatExtensionPrefixAttribute (
prefix : String,
ns : String
)
適用できません。
パラメータ
- prefix
サービスの説明のフォーマット拡張に関連付けられた XML 名前空間プリフィックス。
- ns
サービスの説明のフォーマット拡張に関連付けられた XML 名前空間。
使用例
' 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 = "https://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
// 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 = "https://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.
/** @attribute XmlFormatExtension("action", YMLOperationBinding.YMLNamespace,
OperationBinding.class)
*/
/** @attribute XmlFormatExtensionPrefix("yml", YMLOperationBinding.YMLNamespace)
*/
public class YMLOperationBinding extends ServiceDescriptionFormatExtension
{
private Boolean reverse;
public final static String YMLNamespace = "https://www.contoso.com/yml";
/** @attribute XmlElement("Reverse")
*/
/** @property
*/
public Boolean get_Reverse()
{
return reverse;
} //get_Reverse
/** @property
*/
public void set_Reverse(Boolean value)
{
reverse = value;
} //set_Reverse
} //YMLOperationBinding
プラットフォーム
Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
XmlFormatExtensionPrefixAttribute クラス
XmlFormatExtensionPrefixAttribute メンバ
System.Web.Services.Configuration 名前空間