MultipleGroupPolicyObjectsFoundException Constructor (String, String, Generic ICollection, Exception)

Initializes a new instance of the MultipleGroupPolicyObjectsFoundException class with a specified error message, the name of the parameter that caused this exception, the list of Group Policy objects (GPOs) that have the same display name, and the inner exception that caused this exception.

Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in microsoft.grouppolicy.management.dll)

Usage

    Dim message As String
Dim paramName As String
Dim gpoList As ICollection(Of Guid)
Dim innerException As Exception

Dim instance As New MultipleGroupPolicyObjectsFoundException(message, paramName, gpoList, innerException)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId:="param")> _
Public Sub New ( _
    message As String, _
    paramName As String, _
    gpoList As ICollection(Of Guid), _
    innerException As Exception _
)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="param")] 
public MultipleGroupPolicyObjectsFoundException (
    string message,
    string paramName,
    ICollection<Guid> gpoList,
    Exception innerException
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId=L"param")] 
public:
MultipleGroupPolicyObjectsFoundException (
    String^ message, 
    String^ paramName, 
    ICollection<Guid>^ gpoList, 
    Exception^ innerException
)
/** @attribute SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="param") */ 
public MultipleGroupPolicyObjectsFoundException (
    String message, 
    String paramName, 
    ICollection<Guid> gpoList, 
    Exception innerException
)
SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="param") 
public function MultipleGroupPolicyObjectsFoundException (
    message : String, 
    paramName : String, 
    gpoList : ICollection<Guid>, 
    innerException : Exception
)

Parameters

  • message
    The error message that describes the reason for the exception.
  • 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.
  • 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.

Platforms

Development Platforms

Windows Server 2008 R2

Target Platforms

Windows Server 2008 R2

See Also

Reference

MultipleGroupPolicyObjectsFoundException Class
MultipleGroupPolicyObjectsFoundException Members
Microsoft.GroupPolicy Namespace