Język

ServiceNameElementCollection.Add(ServiceNameElement) Metoda

Definicja

Metoda Add(ServiceNameElement) dodaje ServiceNameElement wystąpienie do tego ServiceNameElementCollectionobiektu .

public:
 void Add(System::Security::Authentication::ExtendedProtection::Configuration::ServiceNameElement ^ element);
public void Add(System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElement element);
member this.Add : System.Security.Authentication.ExtendedProtection.Configuration.ServiceNameElement -> unit
Public Sub Add (element As ServiceNameElement)

Parametry

element
ServiceNameElement

Wystąpienie ServiceNameElement , które ma zostać dodane do tego ServiceNameElementCollectionelementu .

Uwagi

Metoda Add ignoruje zduplikowaną nazwę podaną w parametrze element .

Klasa ServiceNameCollection jest kolekcją głównych nazw usługi (SPN), która reprezentuje element konfiguracji dla elementu ExtendedProtectionPolicy.

Dotyczy