WSHttpBindingBase.Scheme 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得使用這項繫結所設定之通道與接聽程式的 URI 傳輸配置。
public:
virtual property System::String ^ Scheme { System::String ^ get(); };
C#
public override string Scheme { get; }
member this.Scheme : string
Public Overrides ReadOnly Property Scheme As String
若傳輸繫結程序項目的安全性模式設為 None 時為 "http";若安全性模式另設為 Message,則是 "https"。
這個範例會示範如何取得訊息的大小上限。
C#
string scheme = binding1.Scheme;
Dim scheme = binding1.Scheme
產品 | 版本 |
---|---|
.NET | 8 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |