MetadataSerializer.WriteRoleDescriptorElements(XmlWriter, RoleDescriptor) 方法

定義

寫入角色描述元項目。Writes the role descriptor element.

protected:
 virtual void WriteRoleDescriptorElements(System::Xml::XmlWriter ^ writer, System::IdentityModel::Metadata::RoleDescriptor ^ roleDescriptor);
protected virtual void WriteRoleDescriptorElements (System.Xml.XmlWriter writer, System.IdentityModel.Metadata.RoleDescriptor roleDescriptor);
abstract member WriteRoleDescriptorElements : System.Xml.XmlWriter * System.IdentityModel.Metadata.RoleDescriptor -> unit
override this.WriteRoleDescriptorElements : System.Xml.XmlWriter * System.IdentityModel.Metadata.RoleDescriptor -> unit
Protected Overridable Sub WriteRoleDescriptorElements (writer As XmlWriter, roleDescriptor As RoleDescriptor)

參數

writer
XmlWriter

XML 寫入器。The XML writer.

roleDescriptor
RoleDescriptor

角色描述元。The role descriptor.

例外狀況

writernullwriter is null.

-或--or- roleDescriptor 是 .nullroleDescriptor is .null

-或--or- roleDescriptorContacts 屬性為 nullThe Contacts property of roleDescriptor is null.

roleDescriptorKeys 屬性為 nullThe Keys property of roleDescriptor is null.

適用於