Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FtpWebRequest::RequestUri Property

 

Gets the URI requested by this instance.

Namespace:   System.Net
Assembly:  System (in System.dll)

public:
property Uri^ RequestUri {
	virtual Uri^ get() override;
}

Property Value

Type: System::Uri^

A Uri instance that identifies a resource that is accessed using the File Transfer Protocol.

The value of the RequestUri property is the URI specified when the Create method was called to obtain this instance.

The following code example displays this property value.

Console::WriteLine( "User {0} {1}", request->Credentials->GetCredential( request->RequestUri, "basic" )->UserName, request->RequestUri );

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft