ActiveDirectorySubnet Constructors
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.
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.
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.
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
orsiteName
is an empty string.
context
, subnetName
, or siteName
is null
.
The credentials that were supplied are not valid.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기