مشاركة عبر


ScriptNameObjectBase.GetTextProperty Method

Gets the text of the object, if not available, throw appropriate exception based on the state of the object.

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

Syntax

'Declaration
Protected Function GetTextProperty ( _
    requestingProperty As String _
) As String
'Usage
Dim requestingProperty As String 
Dim returnValue As String 

returnValue = Me.GetTextProperty(requestingProperty)
protected string GetTextProperty(
    string requestingProperty
)
protected:
String^ GetTextProperty(
    String^ requestingProperty
)
member GetTextProperty : 
        requestingProperty:string -> string
protected function GetTextProperty(
    requestingProperty : String
) : String

Parameters

  • requestingProperty
    Type: System.String
    The name of the property that should appear in the exception as failed to be retrieved.

Return Value

Type: System.String
The text property of the object.

See Also

Reference

ScriptNameObjectBase Class

Microsoft.SqlServer.Management.Smo Namespace