Share via


IssuedTokenClientCredential.LocalIssuerAddress プロパティ

定義

ローカル発行者のアドレスを取得または設定します。

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 します。

適用対象