MetadataException Constructor (String, Exception, Type)
Initializes a new instance of the class with a message, the inner exception, and the metadataObjectType object.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
inner As Exception, _
metadataObjectType As Type _
)
'Usage
Dim message As String
Dim inner As Exception
Dim metadataObjectType As Type
Dim instance As New MetadataException(message, _
inner, metadataObjectType)
public MetadataException(
string message,
Exception inner,
Type metadataObjectType
)
Parameters
message
Type: System.StringThe error message that explains the exception.
inner
Type: System.ExceptionThe inner exception that caused the current exception, or a a null reference (Nothing in Visual Basic) reference if no inner exception is specified.
metadataObjectType
Type: System.TypeThe type of metadata object that is causing the exception.