PropertyNotSetException Constructor (String)

Initializes a new instance of the PropertyNotSetException class with the specified property.

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

Syntax

'Declaration
Public Sub New ( _
    propertyName As String _
)
'Usage
Dim propertyName As String 

Dim instance As New PropertyNotSetException(propertyName)
public PropertyNotSetException(
    string propertyName
)
public:
PropertyNotSetException(
    String^ propertyName
)
new : 
        propertyName:string -> PropertyNotSetException
public function PropertyNotSetException(
    propertyName : String
)

Parameters

  • propertyName
    Type: System.String
    A String value that specifies the name of the property is not set.

Examples

Handling SMO Exceptions

See Also

Reference

PropertyNotSetException Class

PropertyNotSetException Overload

Microsoft.SqlServer.Management.Smo Namespace