MultipleGroupPolicyObjectsFoundException Constructor (String, Generic ICollection, String, String, Exception)
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)
Usage
Dim paramName As String
Dim gpoList As ICollection(Of Guid)
Dim gpoDisplayName As String
Dim domainName As String
Dim innerException As Exception
Dim instance As New MultipleGroupPolicyObjectsFoundException(paramName, gpoList, gpoDisplayName, domainName, innerException)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId:="param")> _
Public Sub New ( _
paramName As String, _
gpoList As ICollection(Of Guid), _
gpoDisplayName As String, _
domainName As String, _
innerException As Exception _
)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="param")]
public MultipleGroupPolicyObjectsFoundException (
string paramName,
ICollection<Guid> gpoList,
string gpoDisplayName,
string domainName,
Exception innerException
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId=L"param")]
public:
MultipleGroupPolicyObjectsFoundException (
String^ paramName,
ICollection<Guid>^ gpoList,
String^ gpoDisplayName,
String^ domainName,
Exception^ innerException
)
/** @attribute SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="param") */
public MultipleGroupPolicyObjectsFoundException (
String paramName,
ICollection<Guid> gpoList,
String gpoDisplayName,
String domainName,
Exception innerException
)
SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="param")
public function MultipleGroupPolicyObjectsFoundException (
paramName : String,
gpoList : ICollection<Guid>,
gpoDisplayName : String,
domainName : String,
innerException : Exception
)
Parameters
- paramName
The name of the parameter that caused the current exception.
- gpoList
A collection that contains the GUIDs of the GPOs that have the same display name.
- gpoDisplayName
The display name that the GPOs have.
- domainName
The name of the domain in which the GPOs exist.
- innerException
The 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.
Platforms
Development Platforms
Windows Server 2008 R2
Target Platforms
Windows Server 2008 R2
See Also
Reference
MultipleGroupPolicyObjectsFoundException Class
MultipleGroupPolicyObjectsFoundException Members
Microsoft.GroupPolicy Namespace