IChannelReceiver.GetUrlsForUri(String) Method
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.
Returns an array of all the URLs for a URI.
public:
cli::array <System::String ^> ^ GetUrlsForUri(System::String ^ objectURI);
public string[] GetUrlsForUri (string objectURI);
[System.Security.SecurityCritical]
public string[] GetUrlsForUri (string objectURI);
abstract member GetUrlsForUri : string -> string[]
[<System.Security.SecurityCritical>]
abstract member GetUrlsForUri : string -> string[]
Public Function GetUrlsForUri (objectURI As String) As String()
Parameters
- objectURI
- String
The URI for which URLs are required.
Returns
String[]
An array of the URLs.
- Attributes
Exceptions
The immediate caller does not have infrastructure permission.
Examples
// Create and send the object URL.
virtual array<String^>^ GetUrlsForUri( String^ objectURI )
{
array<String^>^myString = gcnew array<String^>(1);
myString[ 0 ] = String::Concat( Dns::Resolve( Dns::GetHostName() )->AddressList[ 0 ], "/", objectURI );
return myString;
}
// Create and send the object URL.
public string[] GetUrlsForUri(string objectURI)
{
string[] myString = new string[1];
myString[0] = Dns.Resolve(Dns.GetHostName()).AddressList[0]
+ "/" + objectURI;
return myString;
}
' Create and send the object URL.
Public Function GetUrlsForUri(ByVal objectURI As String) As String() _
Implements IChannelReceiver.GetUrlsForUri
Dim myString(0) As String
myString(0) = Dns.Resolve(Dns.GetHostName()).AddressList(0).ToString() + "/" + objectURI
Return myString
End Function 'GetUrlsForUri
Remarks
This method is used by the ChannelServices.GetUrlsForObject method.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET