Language

MultipleGroupPolicyObjectsFoundException Constructor (String, ICollection<Guid>, Exception)

 

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

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public MultipleGroupPolicyObjectsFoundException(
    string message,
    ICollection<Guid> gpoList,
    Exception innerException
)
public:
MultipleGroupPolicyObjectsFoundException(
    String^ message,
    ICollection<Guid>^ gpoList,
    Exception^ innerException
)
new : 
        message:string *
        gpoList:ICollection<Guid> *
        innerException:Exception -> MultipleGroupPolicyObjectsFoundException
Public Sub New (
    message As String,
    gpoList As ICollection(Of Guid),
    innerException As Exception
)

Parameters

  • message
    Type: System.String

    The error message that describes the reason for the exception.

  • innerException
    Type: System.Exception

    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 system-supplied message that describes the error. This message takes into account the current system culture.

You can use the GetGpoList method to retrieve the list of GPOs that caused the exception.

See Also

MultipleGroupPolicyObjectsFoundException Overload
MultipleGroupPolicyObjectsFoundException Class
Microsoft.GroupPolicy Namespace

Return to top