Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the text that defines the default or rule.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone)> _
Public Property TextBody As String
Get
Set
'Usage
Dim instance As DefaultRuleBase
Dim value As String
value = instance.TextBody
instance.TextBody = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public string TextBody { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone)]
public:
virtual property String^ TextBody {
String^ get () sealed;
void set (String^ value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
abstract TextBody : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
override TextBody : string with get, set
final function get TextBody () : String
final function set TextBody (value : String)
Property Value
Type: System.String
A String value that defines the default or rule.
Implements
Remarks
This is the equivalent of the constant_expression in the Transact-SQL CREATE DEFAULT statement and the condition_expression in the Transact-SQL CREATE RULE statement.
Examples
Creating, Altering, and Removing Defaults
Creating, Altering, and Removing Rules
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace