FtpWebRequest.RequestUri Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the URI requested by this instance.
public:
virtual property Uri ^ RequestUri { Uri ^ get(); };
public override Uri RequestUri { get; }
member this.RequestUri : Uri
Public Overrides ReadOnly Property RequestUri As Uri
Property Value
A Uri instance that identifies a resource that is accessed using the File Transfer Protocol.
Examples
The following code example displays this property value.
Console::WriteLine( "User {0} {1}", request->Credentials->GetCredential( request->RequestUri, "basic" )->UserName, request->RequestUri );
Console.WriteLine("User {0} {1}",
request.Credentials.GetCredential(request.RequestUri,"basic").UserName,
request.RequestUri
);
Remarks
The value of the RequestUri property is the URI specified when the Create method was called to obtain this instance.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.