FederationManagement.CreateApplicationFederationMetadata 方法

定义

创建包含 Federation Metadata 的 XML 文档。

public:
 static System::Xml::XmlReader ^ CreateApplicationFederationMetadata(Uri ^ applicationUri, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Collections::ObjectModel::Collection<System::IdentityModel::Metadata::DisplayClaim ^> ^ claimsRequired, System::IdentityModel::Services::ApplicationType applicationType, System::Collections::ObjectModel::Collection<Uri ^> ^ audienceUris);
public static System.Xml.XmlReader CreateApplicationFederationMetadata (Uri applicationUri, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Collections.ObjectModel.Collection<System.IdentityModel.Metadata.DisplayClaim> claimsRequired, System.IdentityModel.Services.ApplicationType applicationType, System.Collections.ObjectModel.Collection<Uri> audienceUris);
static member CreateApplicationFederationMetadata : Uri * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Collections.ObjectModel.Collection<System.IdentityModel.Metadata.DisplayClaim> * System.IdentityModel.Services.ApplicationType * System.Collections.ObjectModel.Collection<Uri> -> System.Xml.XmlReader
Public Shared Function CreateApplicationFederationMetadata (applicationUri As Uri, certificate As X509Certificate2, claimsRequired As Collection(Of DisplayClaim), applicationType As ApplicationType, audienceUris As Collection(Of Uri)) As XmlReader

参数

applicationUri
Uri

应用程序 URI。

certificate
X509Certificate2

使用签名元数据的 X.509 证书。

claimsRequired
Collection<DisplayClaim>

应用程序需要的声明。

applicationType
ApplicationType

ApplicationType 的一个值指定元数据描述的应用类型。 这用于确定终结点创建。

audienceUris
Collection<Uri>

可用于此应用程序的可接受的 URI 的集合。

返回

包含使用参数创建的元数据文件的 XML 读取器。

适用于