XmlFormatExtensionPrefixAttribute.XmlFormatExtensionPrefixAttribute(String, String) Constructor

Initializes a new instance of the XmlFormatExtensionPrefixAttribute class, setting the XML namespace and XML namespace prefix for a service description format extension.

Namespace: System.Web.Services.Configuration
Assembly: System.Web.Services (in system.web.services.dll)

public:
XmlFormatExtensionPrefixAttribute (
	String^ prefix, 
	String^ ns
)
public XmlFormatExtensionPrefixAttribute (
	String prefix, 
	String ns
)
public function XmlFormatExtensionPrefixAttribute (
	prefix : String, 
	ns : String
)
Not applicable.

Parameters

prefix

The XML namespace prefix associated with a service description format extension.

ns

The XML namespace associated with a service description format extension.

No code example is currently available or this language may not be supported.
// 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 = "http://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 Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: