Compartilhar via


Propriedade do RDL UserDefinedFunction.IsDeterministic

Gets or sets the Boolean property value that specifies whether the user-defined function is deterministic.

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

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property IsDeterministic As Boolean 
    Get
'Uso
Dim instance As UserDefinedFunction 
Dim value As Boolean 

value = instance.IsDeterministic
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public bool IsDeterministic { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property bool IsDeterministic {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member IsDeterministic : bool
function get IsDeterministic () : boolean

Valor da propriedade

Tipo: System.Boolean
A Boolean value that specifies the whether the user-defined function is deterministic or not.If True, the user-defined function is deterministic. If False (default), the user-defined function is not deterministic.

Comentários

A computed column can be used as a key column in an index or as part of any primary key or unique constraint, if the computed column value is defined by a deterministic expression and the data type of the result is allowed in indexed columns.

An application can use this property to determine if a computed column that depends on a user-defined function can be used in an index.

Exemplos

Definindo propriedades

Consulte também

Referência

UserDefinedFunction Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Funções definidas pelo usuário (Mecanismo de Banco de Dados)

CREATE FUNCTION (Transact-SQL)