ComputerPrincipal.ServicePrincipalNames Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a collection of the Service Principal Names (SPN) for the computer account.

Namespace:   System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

public PrincipalValueCollection<string> ServicePrincipalNames { get; }

Property Value

Type: System.DirectoryServices.AccountManagement.PrincipalValueCollection<String>

A collection of SPNs that specify the names of the accounts registered for this computer. The syntax for the SPN depends on the underlying store.

.NET Framework
Available since 3.5

System.DirectoryServices.AccountManagement
ComputerPrincipal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show: