Share via


UrlAttribute.UrlValue 属性

定义

获取 UrlAttribute 的 URL 值。

public:
 property System::String ^ UrlValue { System::String ^ get(); };
public string UrlValue { get; }
public string UrlValue { [System.Security.SecurityCritical] get; }
member this.UrlValue : string
[<get: System.Security.SecurityCritical>]
member this.UrlValue : string
Public ReadOnly Property UrlValue As String

属性值

UrlAttribute 的 URL 值。

属性

例外

直接调用方没有基础结构权限。

示例

下面的代码示例演示如何使用 UrlValueUrlAttribute属性。

// Create UrlAttribute.
UrlAttribute^ attribute = gcnew UrlAttribute( "tcp://localhost:1234/RemoteApp" );
Console::WriteLine( "UrlAttribute value: {0}", attribute->UrlValue );
// Create a url attribute object.
UrlAttribute attribute =
    new UrlAttribute("tcp://localhost:1234/RemoteApp");
Console.WriteLine("UrlAttribute value: {0}", attribute.UrlValue);

适用于