Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the MultipleGroupPolicyObjectsFoundException class with the name of the parameter that causes this exception, the list of Group Policy objects (GPOs) that have the same display name, the display name, the domain name, and the inner exception that caused this exception.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public MultipleGroupPolicyObjectsFoundException(
string paramName,
ICollection<Guid> gpoList,
string gpoDisplayName,
string domainName,
Exception innerException
)
public:
MultipleGroupPolicyObjectsFoundException(
String^ paramName,
ICollection<Guid>^ gpoList,
String^ gpoDisplayName,
String^ domainName,
Exception^ innerException
)
new :
paramName:string *
gpoList:ICollection<Guid> *
gpoDisplayName:string *
domainName:string *
innerException:Exception -> MultipleGroupPolicyObjectsFoundException
Public Sub New (
paramName As String,
gpoList As ICollection(Of Guid),
gpoDisplayName As String,
domainName As String,
innerException As Exception
)
Parameters
paramName
Type: System.StringThe name of the parameter that caused the current exception.
gpoList
Type: System.Collections.Generic.ICollection<Guid>A collection that contains the GUIDs of the GPOs that have the same display name.
gpoDisplayName
Type: System.StringThe display name that the GPOs have.
domainName
Type: System.StringThe name of the domain in which the GPOs exist.
innerException
Type: System.ExceptionThe exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.
Remarks
This constructor initializes the Message property of the new instance to a message that provides the display name of the GPOs and the name of the domain in which they exist. This message takes into account the current system culture.
See Also
MultipleGroupPolicyObjectsFoundException Overload
MultipleGroupPolicyObjectsFoundException Class
Microsoft.GroupPolicy Namespace
Return to top