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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.