共用方式為


ServiceHostBase.Credentials 屬性

定義

取得裝載之服務的認證。

public:
 property System::ServiceModel::Description::ServiceCredentials ^ Credentials { System::ServiceModel::Description::ServiceCredentials ^ get(); };
public System.ServiceModel.Description.ServiceCredentials Credentials { get; }
member this.Credentials : System.ServiceModel.Description.ServiceCredentials
Public ReadOnly Property Credentials As ServiceCredentials

屬性值

裝載之服務的 ServiceCredentials

範例

ServiceCredentials credentials =
                hostDefault.Credentials;

適用於