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

示例

ServiceCredentials credentials =
                hostDefault.Credentials;

适用于