DiscoveryClientDocumentCollection.Item Property
.NET Framework 2.0
Gets or sets a client discovery document object from the DiscoveryClientDocumentCollection with the specified URL.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public: property Object^ default [String^] { Object^ get (String^ url); void set (String^ url, Object^ value); }
/** @property */ public Object get_Item (String url) /** @property */ public void set_Item (String url, Object value)
Not applicable.
Parameters
- url
The URL of the discovery document to get or set from the DiscoveryClientDocumentCollection.
Property Value
An Object representing the document discovered and downloaded to the client. The underlying type of the object can be a ServiceDescription, XmlSchema, or DiscoveryDocument.The following code example outputs to the console the type of the discovery document in the DiscoveryClientDocumentCollection that has a URL matching the value of the myStringUrl variable.
Object^ myObject = myDiscoveryClientDocumentCollection[ myStringUrl ];
Console::WriteLine( "Object representing the Url : {0}", myObject );
Object myObject = myDiscoveryClientDocumentCollection.
get_Item(myStringUrl);
Console.WriteLine("Object representing the Url : "
+ myObject.ToString());
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.Community Additions
ADD
Show: