IssuedTokenClientCredential.LocalIssuerAddress 属性      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置本地颁发者的地址。
public:
 property System::ServiceModel::EndpointAddress ^ LocalIssuerAddress { System::ServiceModel::EndpointAddress ^ get(); void set(System::ServiceModel::EndpointAddress ^ value); };
	public System.ServiceModel.EndpointAddress LocalIssuerAddress { get; set; }
	member this.LocalIssuerAddress : System.ServiceModel.EndpointAddress with get, set
	Public Property LocalIssuerAddress As EndpointAddress
	属性值
本地颁发者的 EndpointAddress。
例外
试图设置只读凭据。set
示例
此代码演示如何设置此属性。
WSHttpBinding b = new WSHttpBinding();
EndpointAddress ea = new EndpointAddress("http://localhost/Calculator");
CalculatorClient client = new CalculatorClient(b, ea);
IssuedTokenClientCredential itcc = client.ClientCredentials.IssuedToken;
itcc.LocalIssuerAddress = new EndpointAddress("http://fabrikam.com/sts");
	注解
当从安全令牌服务获取已颁发的令牌时,必须使用安全令牌服务的地址配置客户端应用程序。 此信息可由目标服务在其安全策略中指定。 如果目标服务未在其安全策略中指定此信息,则客户端的 WCF 通道使用 LocalIssuerAddress 作为从中获取已颁发令牌的安全令牌服务的地址。