InvalidProfileException 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 InvalidProfileException class.
Overloads
InvalidProfileException() |
Initializes a new instance of the InvalidProfileException class. |
InvalidProfileException(Exception) |
Initializes a new instance of the InvalidProfileException class using a reference to the inner exception that is the cause of this exception. |
InvalidProfileException(String) |
Initializes a new instance of the InvalidProfileException class using the specified error message. |
InvalidProfileException(Guid, Guid) |
Initializes a new instance of the InvalidProfileException class using the specified user role and profile identifier parameters. |
InvalidProfileException(SerializationInfo, StreamingContext) |
Initializes a new instance of the InvalidProfileException class using serialized data. |
InvalidProfileException(String, Exception) |
Initializes a new instance of the InvalidProfileException class using the specified message and a reference to the inner exception that is the cause of this exception. |
InvalidProfileException()
Initializes a new instance of the InvalidProfileException class.
public:
InvalidProfileException();
public InvalidProfileException ();
Public Sub New ()
Applies to
InvalidProfileException(Exception)
Initializes a new instance of the InvalidProfileException class using a reference to the inner exception that is the cause of this exception.
public:
InvalidProfileException(Exception ^ inner);
public InvalidProfileException (Exception inner);
new Microsoft.EnterpriseManagement.Common.InvalidProfileException : Exception -> Microsoft.EnterpriseManagement.Common.InvalidProfileException
Public Sub New (inner As Exception)
Parameters
- inner
- Exception
The exception that is the cause of the current exception.
Applies to
InvalidProfileException(String)
Initializes a new instance of the InvalidProfileException class using the specified error message.
public:
InvalidProfileException(System::String ^ message);
public InvalidProfileException (string message);
new Microsoft.EnterpriseManagement.Common.InvalidProfileException : string -> Microsoft.EnterpriseManagement.Common.InvalidProfileException
Public Sub New (message As String)
Parameters
- message
- String
The error message that describes the current exception.
Applies to
InvalidProfileException(Guid, Guid)
Initializes a new instance of the InvalidProfileException class using the specified user role and profile identifier parameters.
public:
InvalidProfileException(Guid userRoleId, Guid profileId);
public InvalidProfileException (Guid userRoleId, Guid profileId);
new Microsoft.EnterpriseManagement.Common.InvalidProfileException : Guid * Guid -> Microsoft.EnterpriseManagement.Common.InvalidProfileException
Public Sub New (userRoleId As Guid, profileId As Guid)
Parameters
- userRoleId
- Guid
The GUID for the user role.
- profileId
- Guid
The GUID for the profile that is not valid for the user role.
Applies to
InvalidProfileException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidProfileException class using serialized data.
protected:
InvalidProfileException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InvalidProfileException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EnterpriseManagement.Common.InvalidProfileException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EnterpriseManagement.Common.InvalidProfileException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The object that holds the serialized data about the exception being thrown.
- context
- StreamingContext
Context information about the source or destination of the serialized object.
Remarks
This constructor is called during deserialization to reconstitute the exception object that is transmitted over a stream.
Applies to
InvalidProfileException(String, Exception)
Initializes a new instance of the InvalidProfileException class using the specified message and a reference to the inner exception that is the cause of this exception.
public:
InvalidProfileException(System::String ^ message, Exception ^ inner);
public InvalidProfileException (string message, Exception inner);
new Microsoft.EnterpriseManagement.Common.InvalidProfileException : string * Exception -> Microsoft.EnterpriseManagement.Common.InvalidProfileException
Public Sub New (message As String, inner As Exception)
Parameters
- message
- String
The error message that describes the current exception.
- inner
- Exception
The exception that is the cause of the current exception.