Freigeben über


MissingObjectException-Konstruktor (String, String)

Initializes a new instance of the MissingObjectException class that has the specified received name and expected name.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Public Sub New ( _
    objectType As String, _
    objectName As String _
)
'Usage
Dim objectType As String 
Dim objectName As String 

Dim instance As New MissingObjectException(objectType, _
    objectName)
public MissingObjectException(
    string objectType,
    string objectName
)
public:
MissingObjectException(
    String^ objectType, 
    String^ objectName
)
new : 
        objectType:string * 
        objectName:string -> MissingObjectException
public function MissingObjectException(
    objectType : String, 
    objectName : String
)

Parameter

  • objectType
    Typ: System.String
    A String value that specifies the type of object that is missing.
  • objectName
    Typ: System.String
    A String value that specifies the name of the object that is missing.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiele

Behandeln von SMO-Ausnahmen

Siehe auch

Verweis

MissingObjectException Klasse

MissingObjectException-Überladung

Microsoft.SqlServer.Management.Dmf-Namespace