ServiceNameElementCollection.Add(ServiceNameElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Add(ServiceNameElement) method adds a ServiceNameElement instance to this ServiceNameElementCollection.
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)
Parameters
- element
- ServiceNameElement
The ServiceNameElement instance to add to this ServiceNameElementCollection.
Remarks
The Add method ignores a duplicate name provided in the element
parameter.
The ServiceNameCollection class is a collection of Service Principal Names (SPNs) that represent a configuration element for an ExtendedProtectionPolicy.