NegotiateAuthentication.TargetName Property

Definition

Gets the target name (service principal name) of the server.

C#
public string? TargetName { get; }

Property Value

Remarks

For the server side of the authentication, the property returns the target name specified by the client after successful authentication (see IsAuthenticated).

For the client side of the authentication, the property returns the target name specified in TargetName.

Applies to

Product Versions
.NET 7, 8, 9