MonitoringObjectInUserRoleScopeNotAllowedException 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 MonitoringObjectInUserRoleScopeNotAllowedException object.
Overloads
MonitoringObjectInUserRoleScopeNotAllowedException()
Initializes a new MonitoringObjectInUserRoleScopeNotAllowedException object.
public:
MonitoringObjectInUserRoleScopeNotAllowedException();
public MonitoringObjectInUserRoleScopeNotAllowedException ();
Public Sub New ()
Applies to
MonitoringObjectInUserRoleScopeNotAllowedException(ObjectInUserRoleScopeNotAllowedException)
Initializes a new instance of the MonitoringObjectInUserRoleScopeNotAllowedException class by copying values from the specified exception.
public:
MonitoringObjectInUserRoleScopeNotAllowedException(Microsoft::EnterpriseManagement::Common::ObjectInUserRoleScopeNotAllowedException ^ ex);
public MonitoringObjectInUserRoleScopeNotAllowedException (Microsoft.EnterpriseManagement.Common.ObjectInUserRoleScopeNotAllowedException ex);
new Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException : Microsoft.EnterpriseManagement.Common.ObjectInUserRoleScopeNotAllowedException -> Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException
Public Sub New (ex As ObjectInUserRoleScopeNotAllowedException)
Parameters
The exception to copy values from.
Applies to
MonitoringObjectInUserRoleScopeNotAllowedException(Exception)
Initializes a new MonitoringObjectInUserRoleScopeNotAllowedException object by specifying an inner exception that caused the current exception.
public:
MonitoringObjectInUserRoleScopeNotAllowedException(Exception ^ inner);
public MonitoringObjectInUserRoleScopeNotAllowedException (Exception inner);
new Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException : Exception -> Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException
Public Sub New (inner As Exception)
Parameters
- inner
- Exception
The Exception instance that caused the current exception.
Applies to
MonitoringObjectInUserRoleScopeNotAllowedException(Guid)
Initializes a new MonitoringObjectInUserRoleScopeNotAllowedException object by specifying a User Role identifier.
public:
MonitoringObjectInUserRoleScopeNotAllowedException(Guid userRoleId);
public MonitoringObjectInUserRoleScopeNotAllowedException (Guid userRoleId);
new Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException : Guid -> Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException
Public Sub New (userRoleId As Guid)
Parameters
- userRoleId
- Guid
A GUID for the User Role that the monitoring Object is not allowed in.
Applies to
MonitoringObjectInUserRoleScopeNotAllowedException(String)
Initializes a new MonitoringObjectInUserRoleScopeNotAllowedException object by specifying the error message that describes the current exception.
public:
MonitoringObjectInUserRoleScopeNotAllowedException(System::String ^ message);
public MonitoringObjectInUserRoleScopeNotAllowedException (string message);
new Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException : string -> Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException
Public Sub New (message As String)
Parameters
- message
- String
The error message that describes the current exception.
Applies to
MonitoringObjectInUserRoleScopeNotAllowedException(SerializationInfo, StreamingContext)
Initializes a new MonitoringObjectInUserRoleScopeNotAllowedException object with serialized data.
protected:
MonitoringObjectInUserRoleScopeNotAllowedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected MonitoringObjectInUserRoleScopeNotAllowedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The SerializationInfo object that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext object that contains contextual information about the source or destination.
Remarks
This constructor is called during deserialization to reconstitute the exception object that is transmitted over a stream.
Applies to
MonitoringObjectInUserRoleScopeNotAllowedException(String, Exception)
Initializes a new MonitoringObjectInUserRoleScopeNotAllowedException object with an error message and inner exception.
public:
MonitoringObjectInUserRoleScopeNotAllowedException(System::String ^ message, Exception ^ inner);
public MonitoringObjectInUserRoleScopeNotAllowedException (string message, Exception inner);
new Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException : string * Exception -> Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException
Public Sub New (message As String, inner As Exception)
Parameters
- message
- String
The error message that describes the current exception.
- inner
- Exception
The Exception instance that caused the current exception.