Compartir a través de


UserDefinedFunction.TextBody Propiedad

Gets or sets the Transact-SQL string that defines the user-defined function.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property TextBody As String 
    Get 
    Set
'Uso
Dim instance As UserDefinedFunction 
Dim value As String 

value = instance.TextBody

instance.TextBody = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public string TextBody { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property String^ TextBody {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract TextBody : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override TextBody : string with get, set
final function get TextBody () : String 
final function set TextBody (value : String)

Valor de la propiedad

Tipo: System.String
A String value that specifies the Transact-SQL string that defines the user-defined function.

Implementa

ITextObject.TextBody

Ejemplos

Establecer propiedades

Vea también

Referencia

UserDefinedFunction Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Funciones definidas por el usuario (motor de base de datos)

CREATE FUNCTION (Transact-SQL)