Breyta

Deila með


Domain.SetSelectiveAuthenticationStatus(String, Boolean) Method

Definition

Enables or disables selective authentication for an inbound trust.

public:
 void SetSelectiveAuthenticationStatus(System::String ^ targetDomainName, bool enable);
public void SetSelectiveAuthenticationStatus (string targetDomainName, bool enable);
member this.SetSelectiveAuthenticationStatus : string * bool -> unit
Public Sub SetSelectiveAuthenticationStatus (targetDomainName As String, enable As Boolean)

Parameters

targetDomainName
String

The DNS name of the domain with which the inbound trust exists.

enable
Boolean

true if selective authentication is enabled; otherwise, false.

Exceptions

There is no trust relationship with the domain controller that is specified by targetDomainName.

A call to the underlying directory service resulted in an error.

The target server is either busy or unavailable.

targetDomainName is an empty string.

targetDomainName is null.

The current object has been disposed.

The specified account does not have permission to perform this operation.

Applies to

See also