Compartir a través de


UserDefinedFunction Miembros

The UserDefinedFunction object represents a SQL Server user-defined function.

El tipo UserDefinedFunction expone los siguientes miembros.

Constructores

  Nombre Descripción
Método publico UserDefinedFunction() () () () Initializes a new instance of the UserDefinedFunction class.
Método publico UserDefinedFunction(Database, String) Initializes a new instance of the UserDefinedFunction class on the specified database and with the specified name.
Método publico UserDefinedFunction(Database, String, String) Initializes a new instance of the UserDefinedFunction class on the specified database and with the specified name and schema.

Principio

Métodos

  Nombre Descripción
Método protegido AddDatabaseContext (Se hereda de SqlSmoObject).
Método publico Alter Updates any UserDefinedFunction object property changes on the instance of SQL Server.
Método protegido AlterImpl (Se hereda de SqlSmoObject).
Método protegido AlterImplFinish (Se hereda de SqlSmoObject).
Método protegido AlterImplInit (Se hereda de SqlSmoObject).
Método protegido AlterImplWorker (Se hereda de SqlSmoObject).
Método protegido AppendCommaText (Se hereda de ScriptNameObjectBase).
Método protegido AppendWithCommaText (Se hereda de ScriptNameObjectBase).
Método protegido AppendWithOption (Se hereda de ScriptNameObjectBase).
Método protegido BindDefaultImpl (Se hereda de SqlSmoObject).
Método protegido BindRuleImpl (Se hereda de SqlSmoObject).
Método publico ChangeSchema Changes the schema for the user-defined function.
Método protegido CheckCollation (Se hereda de SqlSmoObject).
Método protegido CheckObjectDirty (Se hereda de ScriptNameObjectBase).
Método protegido CheckObjectState() () () () Validates the state of the referenced object. (Se hereda de SqlSmoObject).
Método protegido CheckObjectState(Boolean) Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Se hereda de SqlSmoObject).
Método protegido CheckObjectStateImpl (Se hereda de SqlSmoObject).
Método protegido CheckTextCorectness (Se hereda de ScriptNameObjectBase).
Método protegido CheckTextModeSupport (Se hereda de ScriptNameObjectBase).
Método protegido CheckVersion100 (Se hereda de SqlSmoObject).
Método protegido CheckVersion80 Checks the validity of the object on SQL Server 2000. (Se hereda de SqlSmoObject).
Método protegido CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Se hereda de SqlSmoObject).
Método protegido CheckVersion90 Check the validity of the object on SQL Server 2005. (Se hereda de SqlSmoObject).
Método protegido CheckVersionBelow90 (Se hereda de SqlSmoObject).
Método protegido CleanObject Cleans the referenced object. (Se hereda de ScriptNameObjectBase).
Método publico Create Creates a user-defined function on the instance of SQL Server as defined by the UserDefinedFunction object.
Método protegido CreateImpl (Se hereda de SqlSmoObject).
Método protegido CreateImplFinish (Se hereda de SqlSmoObject).
Método protegido CreateImplInit (Se hereda de SqlSmoObject).
Método publico Deny(ObjectPermissionSet, String) Denies the specified set of permissions for the specified grantee on the user-defined function.
Método publico Deny(ObjectPermissionSet, array<String> [] () [] []) Denies the specified set of permissions for the specified grantees on the user-defined function.
Método publico Deny(ObjectPermissionSet, String, Boolean) Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the user-defined function.
Método publico Deny(ObjectPermissionSet, String, array<String> [] () [] []) Denies the specified set of permissions to the grantee on the specified columns on the user-defined function.
Método publico Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) Denies the specified permission for the specified grantees on the user-defined function.
Método publico Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) Denies the specified set of permissions for the grantees on the specified columns on the user-defined function.
Método publico Deny(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the specified columns on the user-defined function.
Método publico Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the specified columns on the user-defined function.
Método publico Discover (Se hereda de SqlSmoObject).
Método publico Drop Removes the user-defined function from the instance of SQL Server.
Método protegido DropImpl (Se hereda de SqlSmoObject).
Método protegido DropImplWorker (Se hereda de SqlSmoObject).
Método publico EnumColumnPermissions() () () () Enumerates a list of column permissions for the user-defined function.
Método publico EnumColumnPermissions(String) Enumerates a list of column permissions for a specified grantee on the user-defined function.
Método publico EnumColumnPermissions(ObjectPermissionSet) Enumerates a list of column permissions for a specified permission on the user-defined function.
Método publico EnumColumnPermissions(String, ObjectPermissionSet) Enumerates a list of column permissions for a specified grantee and a specified permission on the user-defined function.
Método publico EnumObjectPermissions() () () () Enumerates a list of object permissions for the user-defined function.
Método publico EnumObjectPermissions(String) Enumerates a list of object permissions for a specified grantee on the user-defined function.
Método publico EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of object permissions for a specified permission on the user-defined function.
Método publico EnumObjectPermissions(String, ObjectPermissionSet) Enumerates a list of object permissions for a specified grantee and a specified permission on the user-defined function.
Método protegido EnumScriptImpl (Se hereda de SqlSmoObject).
Método protegido EnumScriptImplWorker (Se hereda de SqlSmoObject).
Método publico Equals (Se hereda de Object).
Método protegido Finalize (Se hereda de Object).
Método protegido ForceTextModeOnTextBody Enforces text mode on the text body. (Se hereda de ScriptNameObjectBase).
Método protegido FormatSqlVariant (Se hereda de SqlSmoObject).
Método protegido GenerateDataSpaceFileStreamScript (Se hereda de SqlSmoObject).
Método protegido GenerateDataSpaceScript (Se hereda de SqlSmoObject).
Método protegido GetBindDefaultScript (Se hereda de SqlSmoObject).
Método protegido GetBindRuleScript (Se hereda de SqlSmoObject).
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetBraketNameForText (Se hereda de ScriptNameObjectBase).
Método protegido GetDateTimeParameter (Se hereda de SqlSmoObject).
Método protegido GetDateTimeParameterAsInt (Se hereda de SqlSmoObject).
Método protegido GetDBName Gets the database name that is associated with the object. (Se hereda de SqlSmoObject).
Método protegido GetEnumParameter (Se hereda de SqlSmoObject).
Método protegido GetFragOptionString (Se hereda de SqlSmoObject).
Método protegido GetGuidParameter (Se hereda de SqlSmoObject).
Método publico GetHashCode (Se hereda de Object).
Método protegido GetIsTextDirty Determines whether the text value is consistent with stored value. (Se hereda de ScriptNameObjectBase).
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetPropValue (Se hereda de SqlSmoObject).
Método protegido GetPropValueOptional (Se hereda de SqlSmoObject).
Método protegido GetPropValueOptionalAllowNull (Se hereda de SqlSmoObject).
Método protegido GetRealValue (Se hereda de SqlSmoObject).
Método protegido GetScriptIncludeExists (Se hereda de ScriptNameObjectBase).
Método protegido GetScriptingOptionsForCreate (Se hereda de SqlSmoObject).
Método protegido GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject).
Método protegido GetServerObject (Se hereda de SqlSmoObject).
Método protegido GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject).
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetTextBody() () () () Returns the text body. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextBody(Boolean) Returns the text body. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Se hereda de ScriptNameObjectBase).
Método protegido GetTextHeader Returns the text header. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextMode Determines whether the script name is using text mode. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextProperty(String) (Se hereda de ScriptNameObjectBase).
Método protegido GetTextProperty(String, ScriptingOptions) (Se hereda de ScriptNameObjectBase).
Método protegido GetTimeSpanParameterAsInt (Se hereda de SqlSmoObject).
Método publico GetType (Se hereda de Object).
Método protegido GetUrnRecursive(StringBuilder) (Se hereda de SqlSmoObject).
Método protegido GetUrnRecursive(StringBuilder, UrnIdOption) (Se hereda de SqlSmoObject).
Método publico Grant(ObjectPermissionSet, String) Grants the specified set of permissions to the specified grantee on the user-defined function.
Método publico Grant(ObjectPermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the user-defined function.
Método publico Grant(ObjectPermissionSet, String, Boolean) Grants access to the specified permission and the ability to grant access to other uses for the specified grantee on the user-defined function.
Método publico Grant(ObjectPermissionSet, String, array<String> [] () [] []) Grants access to the specified permission on the specified columns for the specified grantee on the specified columns on the user-defined function.
Método publico Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean) Grants access to the specified permission and the ability to grant access to other uses for the specified grantees on the user-defined function.
Método publico Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) Grants the specified set of permissions to the grantees to the specified columns on the user-defined function.
Método publico Grant(ObjectPermissionSet, String, Boolean, String) Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the user-defined function under an assumed role.
Método publico Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) Grants the specified permission to the grantee and the ability to grant the specified set of permissions to other users on the specified columns on the user-defined function.
Método publico Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the user-defined function under an assumed role.
Método publico Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the specified columns on the user-defined function.
Método publico Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the specified columns on the user-defined function under an assumed role.
Método publico Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the specified columns on the user-defined function under an assumed role.
Método protegido ImplInitialize (Se hereda de SqlSmoObject).
Método publico Initialize() () () () Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject).
Método publico Initialize(Boolean) Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject).
Método protegido IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Se hereda de ScriptNameObjectBase).
Método protegido IsObjectInitialized Verifies whether the object has been initialized. (Se hereda de SqlSmoObject).
Método protegido IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Se hereda de SqlSmoObject).
Método protegido IsVersion80SP3 (Se hereda de SqlSmoObject).
Método protegido MarkDropped (Se hereda de SqlSmoObject).
Método protegido MarkForDropImpl (Se hereda de SqlSmoObject).
Método protegido MemberwiseClone (Se hereda de Object).
Método protegido PostAlter (Se hereda de SqlSmoObject).
Método protegido PostCreate (Se hereda de SqlSmoObject).
Método protegido PostDrop (Se hereda de SqlSmoObject).
Método publico Refresh Refreshes the UserDefinedFunction object properties. (Invalida ScriptNameObjectBase. . :: . .Refresh() () () ().)
Método publico Rename Renames the user-defined function.
Método protegido RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método publico Revoke(ObjectPermissionSet, String) Revokes a previously granted set of permissions from a grantee on the user-defined function.
Método publico Revoke(ObjectPermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the user-defined function.
Método publico Revoke(ObjectPermissionSet, String, array<String> [] () [] []) Revokes a previously granted set of permissions from a grantee on the specified columns on the user-defined function.
Método publico Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the specified columns on the user-defined function.
Método publico Revoke(ObjectPermissionSet, String, Boolean, Boolean) Revokes a previously granted set of permissions from a grantee on the user-defined function and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users.
Método publico Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) Revokes a previously granted set of permissions from grantees from the user-defined function and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users.
Método publico Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revokes a previously granted set of permissions from a grantee on the user-defined function and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Método publico Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean) Revokes a previously granted set of permissions from grantees on the specified columns on the user-defined function and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Método publico Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) Revokes a previously granted set of permissions from grantees on the user-defined function and any other users to whom the grantees have granted access. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Método publico Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean) Revokes a previously granted set of permissions from grantees on the specified columns on the user-defined function and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users.
Método publico Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean, String) Revokes a previously granted set of permissions from a grantee on the specified columns on the user-defined function and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Método publico Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean, String) Revokes a previously granted set of permissions from grantees on the specified columns on the user-defined function and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Método publico Script() () () () Generates a Transact-SQL script that can be used to re-create the user-defined function.
Método publico Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the user-defined function as specified by the script options.
Método protegido ScriptAlter (Se hereda de SqlSmoObject).
Método protegido ScriptAnsiQI (Se hereda de ScriptNameObjectBase).
Método protegido ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido ScriptCreate (Se hereda de SqlSmoObject).
Método protegido ScriptDdl (Se hereda de SqlSmoObject).
Método protegido ScriptDrop (Se hereda de SqlSmoObject).
Método publico ScriptHeader Returns the text header with the option to modify the text.
Método protegido ScriptImpl() () () () (Se hereda de SqlSmoObject).
Método protegido ScriptImpl(ScriptingOptions) (Se hereda de SqlSmoObject).
Método protegido ScriptImplWorker (Se hereda de SqlSmoObject).
Método protegido ScriptInformativeHeaders (Se hereda de ScriptNameObjectBase).
Método protegido ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido SetCollectionTextMode Sets the collection text mode. (Se hereda de ScriptNameObjectBase).
Método protegido SetParentImpl (Se hereda de SqlSmoObject).
Método protegido SetTextBody Specifies the text body. (Se hereda de ScriptNameObjectBase).
Método protegido SetTextHeader Specifies the text header. (Se hereda de ScriptNameObjectBase).
Método protegido SetTextMode Specifies the text mode. (Se hereda de ScriptNameObjectBase).
Método protegido SwitchTextMode Switches the text mode. (Se hereda de ScriptNameObjectBase).
Método protegido ThrowIfTextIsDirtyForAlter (Se hereda de ScriptNameObjectBase).
Método publico ToString Returns a String that represents the referenced object. (Se hereda de SqlSmoObject).
Método protegido TouchImpl (Se hereda de SqlSmoObject).
Método protegido UnbindDefaultImpl (Se hereda de SqlSmoObject).
Método protegido UnbindRuleImpl (Se hereda de SqlSmoObject).
Método publico Validate (Se hereda de SmoObjectBase).

Principio

Campos

  Nombre Descripción
Campo protegido m_ExtendedProperties (Se hereda de SqlSmoObject).

Principio

Propiedades

  Nombre Descripción
Propiedad pública AnsiNullsStatus Gets the Boolean property value that specifies whether ISO NULL handling is enabled in the user-defined function.
Propiedad pública AssemblyName Gets or sets the name of the assembly for the user-defined function.
Propiedad pública Checks Represents a collection of Check objects. Each Check object represents a check constraint defined on the user-defined function.
Propiedad pública ClassName Gets or sets the name of the class for the user-defined function.
Propiedad pública Columns Represents a collection of Column objects. Each Column object represents a column defined on the user-defined function.
Propiedad pública CreateDate Gets the date and time when the user-defined function was created.
Propiedad pública DataType Gets or sets the return type for scalar functions.
Propiedad pública DateLastModified Gets the date and time when the user-defined function was last modified.
Propiedad pública Events Gets the events associated with the user-defined function.
Propiedad protegida ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Se hereda de SqlSmoObject).
Propiedad pública ExecutionContext Gets or sets the execution context for the user-defined function.
Propiedad pública ExecutionContextPrincipal Gets or sets the execution context principal for the user-defined function.
Propiedad pública ExtendedProperties Gets the extended properties of the UserDefinedFunction object.
Propiedad pública FunctionType Gets or sets the user-defined function type.
Propiedad pública ID Gets the ID value that uniquely identifies the user-defined function.
Propiedad pública ImplementationType Gets or sets the implementation type of the user-defined function.
Propiedad pública Indexes Represents a collection of Index objects. Each Index object represents an index defined on the user-defined function.
Propiedad pública IsDeterministic Gets or sets the Boolean property value that specifies whether the user-defined function is deterministic.
Propiedad pública IsEncrypted Gets or sets the Boolean property value that specifies whether the user-defined function is encrypted.
Propiedad pública IsSchemaBound Gets or sets the Boolean property value that specifies whether the user-defined function is bound to a schema.
Propiedad pública IsSchemaOwned
Propiedad pública IsSystemObject Gets the Boolean property value that specifies whether the user-defined function is a system object.
Propiedad protegida IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Se hereda de SqlSmoObject).
Propiedad pública MethodName Gets the method name for the user-defined function.
Propiedad pública Name Gets or sets the name of the Schema Object Base. (Se hereda de ScriptSchemaObjectBase).
Propiedad protegida ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Se hereda de SqlSmoObject).
Propiedad pública OrderColumns Returns the OrderColumnsCollection that is associated with this user-defined function.
Propiedad pública Owner
Propiedad pública Parameters Represents a collection of Parameter objects. Each Parameter object represents a parameter defined for the user-defined function.
Propiedad pública Parent Gets or sets the Database object that is the parent of the UserDefinedFunction object.
Propiedad pública Properties Gets a collection of Property objects that represent the object properties. (Se hereda de SqlSmoObject).
Propiedad pública QuotedIdentifierStatus Gets or sets a Boolean property value that specifies whether identifiers delimited by double quotation marks are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules in the user-defined function.
Propiedad pública ReturnsNullOnNullInput Gets or sets the Boolean property that specifies whether to call the function if at least one of the function arguments is null.
Propiedad protegida ScalarResult Gets the scalar result for the referenced object. (Se hereda de SqlSmoObject).
Propiedad pública Schema Gets or sets the schema. (Se hereda de ScriptSchemaObjectBase).
Propiedad pública State Gets the state of the referenced object. (Se hereda de SmoObjectBase).
Propiedad pública TableVariableName Gets or sets the table variable name.
Propiedad pública TextBody Gets or sets the Transact-SQL string that defines the user-defined function.
Propiedad pública TextHeader Gets or sets the header part of the Transact-SQL string that defines the user-defined function.
Propiedad pública TextMode Gets or sets the Boolean property that specifies whether the text header is editable as text.
Propiedad pública Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Se hereda de SqlSmoObject).
Propiedad pública UserData Gets or sets user-defined data associated with the referenced object. (Se hereda de SmoObjectBase).

Principio

Eventos

  Nombre Descripción
Evento público PropertyChanged (Se hereda de SqlSmoObject).
Evento público PropertyMetadataChanged (Se hereda de SqlSmoObject).

Principio

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado IAlienObjectDiscover (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetParent (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetProperty (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado ISfcPropertyProviderGetPropertySet (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetUrn (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectResolve (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectSetProperty (Se hereda de SqlSmoObject).

Principio