WebReference.AppSettingUrlKey 属性

定义

获取 Web 引用的 URL 键。Gets the URL key of the web reference.

public:
 property System::String ^ AppSettingUrlKey { System::String ^ get(); };
public string AppSettingUrlKey { get; }
member this.AppSettingUrlKey : string
Public ReadOnly Property AppSettingUrlKey As String

属性值

String

包含 Web 引用的 URL 键的 StringA String containing the URL key of the Web reference.

示例

下面的代码示例演示如何使用此属性。The following code example illustrates the use of this property. 此代码示例是为类提供的更大示例的一部分 WebReferenceThis code example is part of a larger example provided for the WebReference class.

// Print some information about the web reference.
Console.WriteLine("Base Url = {0}", reference.AppSettingBaseUrl);
Console.WriteLine("Url Key = {0}", reference.AppSettingUrlKey);
Console.WriteLine("Documents = {0}", reference.Documents.Count);

适用于