編集

次の方法で共有


ActiveDirectorySubnet Constructors

Definition

Initializes a new instance of the ActiveDirectorySubnet class.

Overloads

ActiveDirectorySubnet(DirectoryContext, String)

Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object and subnet name.

ActiveDirectorySubnet(DirectoryContext, String, String)

Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object, subnet name, and site name.

ActiveDirectorySubnet(DirectoryContext, String)

Source:
ActiveDirectorySubnet.cs
Source:
ActiveDirectorySubnet.cs
Source:
ActiveDirectorySubnet.cs
Source:
ActiveDirectorySubnet.cs

Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object and subnet name.

public:
 ActiveDirectorySubnet(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ subnetName);
public ActiveDirectorySubnet (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string subnetName);
new System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet : System.DirectoryServices.ActiveDirectory.DirectoryContext * string -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet
Public Sub New (context As DirectoryContext, subnetName As String)

Parameters

context
DirectoryContext

A DirectoryContext object that specifies the context for this ActiveDirectorySubnet object.

subnetName
String

A String that specifies the name of the subnet.

Exceptions

context specifies a configuration set, but no AD LDS instance was found.

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

The target server is either busy or unavailable.

This exception will occur for any of the following reasons:

  • context does not refer a valid forest, configuration set, domain controller, or AD LDS server.

  • subnetName is an empty string.

context or subnetName is null.

The credentials that were supplied are not valid.

Applies to

ActiveDirectorySubnet(DirectoryContext, String, String)

Source:
ActiveDirectorySubnet.cs
Source:
ActiveDirectorySubnet.cs
Source:
ActiveDirectorySubnet.cs
Source:
ActiveDirectorySubnet.cs

Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object, subnet name, and site name.

public:
 ActiveDirectorySubnet(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ subnetName, System::String ^ siteName);
public ActiveDirectorySubnet (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string subnetName, string siteName);
new System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * string -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet
Public Sub New (context As DirectoryContext, subnetName As String, siteName As String)

Parameters

context
DirectoryContext

A DirectoryContext object that specifies the context for this ActiveDirectorySubnet object.

subnetName
String

A String that specifies the name of the subnet.

siteName
String

A String that specifies the name of the site that contains the subnet.

Exceptions

context specifies a configuration set, but no AD LDS instance was found.

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

The target server is either busy or unavailable.

This exception will occur for any of the following reasons:

  • context does not refer to a valid forest, configuration set, domain controller, or AD LDS server.

  • subnetName or siteName is an empty string.

context, subnetName, or siteName is null.

The credentials that were supplied are not valid.

Applies to