Obtiene o establece la dirección URL de la descripción de servicios a la que se hace referencia.
Espacio de nombres: System.Web.Services.Discovery
Ensamblado: System.Web.Services (en system.web.services.dll)
Visual Basic (Declaración)
Public Overrides Property Url As String
Dim instance As ContractReference
Dim value As String
value = instance.Url
instance.Url = value
public override string Url { get; set; }
public:
virtual property String^ Url {
String^ get () override;
void set (String^ value) override;
}
/** @property */
public String get_Url ()
/** @property */
public void set_Url (String value)
public override function get Url () : String
public override function set Url (value : String)
Valor de propiedad
Dirección URL de la descripción de servicios a la que se hace referencia.
Para la clase ContractReference, la propiedad Url devuelve el valor de la propiedad Ref.
Dim myProtocol As New DiscoveryClientProtocol()
' Get the DiscoveryDocument.
Dim myDiscoveryDocument As DiscoveryDocument = _
myProtocol.Discover("http://localhost/ContractReference/Test_vb.disco")
Dim myArrayList As ArrayList = _
CType(myDiscoveryDocument.References, ArrayList)
' Get the ContractReference.
Dim myContractRefrence As ContractReference = _
CType(myArrayList(0), ContractReference)
' Get the DefaultFileName associated with the .disco file.
Dim myFileName As String = myContractRefrence.DefaultFilename
' Get the URL associated with the .disco file.
Dim myUrl As String = myContractRefrence.Url
Console.WriteLine("The DefaulFilename is: " + myUrl)
Console.WriteLine("The URL is: " + myUrl)
DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol();
// Get the DiscoveryDocument.
DiscoveryDocument myDiscoveryDocument =
myProtocol.Discover("http://localhost/ContractReference/test_cs.disco");
ArrayList myArrayList = (ArrayList)myDiscoveryDocument.References;
// Get the ContractReference.
ContractReference myContractRefrence = (ContractReference)myArrayList[0];
// Get the DefaultFileName associated with the .disco file.
String myFileName = myContractRefrence.DefaultFilename;
// Get the URL associated with the .disco file.
String myUrl = myContractRefrence.Url;
Console.WriteLine("The DefaulFilename is: " + myUrl);
Console.WriteLine("The URL is: " + myUrl);
DiscoveryClientProtocol^ myProtocol = gcnew DiscoveryClientProtocol;
// Get the DiscoveryDocument.
DiscoveryDocument^ myDiscoveryDocument = myProtocol->Discover( "http://localhost/ContractReference/test_cs.disco" );
ArrayList^ myArrayList = dynamic_cast<ArrayList^>(myDiscoveryDocument->References);
// Get the ContractReference.
ContractReference^ myContractRefrence = dynamic_cast<ContractReference^>(myArrayList[ 0 ]);
// Get the DefaultFileName associated with the .disco file.
String^ myFileName = myContractRefrence->DefaultFilename;
// Get the URL associated with the .disco file.
String^ myUrl = myContractRefrence->Url;
Console::WriteLine( "The DefaulFilename is: {0}", myUrl );
Console::WriteLine( "The URL is: {0}", myUrl );
DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol();
// Get the DiscoveryDocument.
DiscoveryDocument myDiscoveryDocument = myProtocol.Discover(
"http://localhost/ContractReference/test_cs.disco");
ArrayList myArrayList = (ArrayList)(myDiscoveryDocument.
get_References());
// Get the ContractReference.
ContractReference myContractRefrence = (ContractReference)myArrayList.
get_Item(0);
// Get the DefaultFileName associated with the .disco file.
String myFileName = myContractRefrence.get_DefaultFilename();
// Get the URL associated with the .disco file.
String myUrl = myContractRefrence.get_Url();
Console.WriteLine("The DefaulFilename is: " + myUrl);
Console.WriteLine("The URL is: " + myUrl);
Windows 98, Windows 2000 Service Pack 4, Windows CE, Windows Millennium, Windows Mobile para Pocket PC, Windows Mobile para Smartphone, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter
Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.
.NET Framework
Compatible con: 3.0, 2.0, 1.1, 1.0