Import.Namespace Property

 

Gets or sets the value of the XML namespace attribute of the import element.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public string Namespace { get; set; }

Property Value

Type: System.String

The value of the XML namespace attribute of the import element.

// Creates an Import object with namespace and location.
public static Import CreateImport(string targetNamespace, 
   string targetlocation)
{
   Import myImport = new Import();
   myImport.Location = targetlocation;
   myImport.Namespace = targetNamespace;
   return myImport;
}

.NET Framework
Available since 1.1
Return to top
Show: