(0) exportieren Drucken
Alle erweitern
Dieser Artikel wurde manuell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
Übersetzung
Original
Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

UserDefinedAggregate-Klasse

The UserDefinedAggregate object represents a SQL Server user-defined aggregate.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class UserDefinedAggregate : ScriptSchemaObjectBase, 
	ISfcSupportsDesignMode, IObjectPermission, ICreatable, IDroppable, IExtendedProperties, 
	IScriptable, IAlterable

Der UserDefinedAggregate-Typ macht folgende Elemente verfügbar.

  NameBeschreibung
Öffentliche MethodeUserDefinedAggregate()Initializes a new instance of the UserDefinedAggregate class.
Öffentliche MethodeUserDefinedAggregate(Database, String)Initializes a new instance of the UserDefinedAggregate class on the specified database and with the specified name.
Öffentliche MethodeUserDefinedAggregate(Database, String, String)Initializes a new instance of the UserDefinedAggregate class on the specified database and with the specified name and schema.
Zum Anfang
  NameBeschreibung
Öffentliche EigenschaftAssemblyNameGets or sets the name of the assembly for the user-defined aggregate.
Öffentliche EigenschaftClassNameGets or sets the name of the class for the user-defined aggregate.
Öffentliche EigenschaftCreateDateGets the date and time when the user-defined aggregate was created.
Öffentliche EigenschaftDataTypeGets or sets the data type returned by the user-defined aggregate.
Öffentliche EigenschaftDateLastModifiedGets the date and time when the user-defined aggregate was last modified.
Öffentliche EigenschaftExtendedPropertiesRepresents a collection of ExtendedProperty objects. Each ExtendedProperty object represents an extended property defined on the user-defined aggregate.
Öffentliche EigenschaftIDGets the ID value that uniquely identifies the user-defined aggregate.
Öffentliche EigenschaftIsSchemaOwnedGets a Boolean value that indicates whether the UserDefinedAggregate object is owned by a schema.
Öffentliche EigenschaftNameGets or sets a String which contains the name of the UserDefinedAggregate. (Überschreibt ScriptSchemaObjectBase.Name.)
Öffentliche EigenschaftOwnerGets the name of the owner of the UserDefinedAggregate object.
Öffentliche EigenschaftParametersRepresents a collection of UserDefinedAggregateParameter objects. Each UserDefinedAggregateParameter object represents a parameter defined on the user-defined aggregate.
Öffentliche EigenschaftParentGets the Database object that is the parent of the UserDefinedAggregate object.
Öffentliche EigenschaftPropertiesGets a collection of Property objects that represent the object properties. (Geerbt von SqlSmoObject.)
Öffentliche EigenschaftSchemaGets or sets a String which contains the name of the Scheme which owns the UserDefinedAggregate. (Überschreibt ScriptSchemaObjectBase.Schema.)
Öffentliche EigenschaftStateGets the state of the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche EigenschaftUrnGets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Geerbt von SqlSmoObject.)
Öffentliche EigenschaftUserDataGets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.)
Zum Anfang
  NameBeschreibung
Öffentliche MethodeAlterUpdates any UserDefinedAggregate object property changes on instance of Microsoft SQL Server.
Öffentliche MethodeChangeSchemaChanges the schema for the user-defined aggregate.
Öffentliche MethodeCreateCreates a user-defined aggregate on the instance of Microsoft SQL Server as defined by the UserDefinedAggregate object.
Öffentliche MethodeDeny(ObjectPermissionSet, String)Denies the specified set of permissions for the specified grantee on the user-defined aggregate.
Öffentliche MethodeDeny(ObjectPermissionSet, String[])Denies the specified set of permissions for the specified grantees on the user-defined aggregate.
Öffentliche MethodeDeny(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 aggregate.
Öffentliche MethodeDeny(ObjectPermissionSet, 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 user-defined aggregate.
Öffentliche MethodeDiscoverDiscovers a list of type Object. (Geerbt von SqlSmoObject.)
Öffentliche MethodeDropRemoves the user-defined aggregate from the instance of Microsoft SQL Server.
Öffentliche MethodeEnumObjectPermissions()Enumerates a list of object permissions for the user-defined aggregate.
Öffentliche MethodeEnumObjectPermissions(String)Enumerates a list of object permissions for a specified grantee on the user-defined aggregate.
Öffentliche MethodeEnumObjectPermissions(ObjectPermissionSet)Enumerates a list of object permissions for a specified permission on the user-defined aggregate.
Öffentliche MethodeEnumObjectPermissions(String, ObjectPermissionSet)Enumerates a list of object permissions for a specified grantee and a specified permission on the user-defined aggregate.
Öffentliche MethodeEquals (Geerbt von Object.)
Geschützte MethodeFormatSqlVariantFormats an object as SqlVariant type. (Geerbt von SqlSmoObject.)
Geschützte MethodeGetContextDBGets the context database that is associated with this object. (Geerbt von SqlSmoObject.)
Geschützte MethodeGetDBNameGets the database name that is associated with the object. (Geerbt von SqlSmoObject.)
Öffentliche MethodeGetHashCode (Geerbt von Object.)
Geschützte MethodeGetPropValueGets a property value of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Geschützte MethodeGetPropValueOptionalGets a property value of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Geschützte MethodeGetPropValueOptionalAllowNullGets a property value of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Geschützte MethodeGetServerObjectGets the server of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Öffentliche MethodeGetType (Geerbt von Object.)
Öffentliche MethodeGrant(ObjectPermissionSet, String)Grants the specified set of permissions to the specified grantee on the user-defined aggregate.
Öffentliche MethodeGrant(ObjectPermissionSet, String[])Grants the specified set of permissions to the specified grantees on the user-defined aggregate.
Öffentliche MethodeGrant(ObjectPermissionSet, String, Boolean)Grants access to the specified permission to the grantee and the ability to grant access to other users on the user-defined aggregate.
Öffentliche MethodeGrant(ObjectPermissionSet, String[], Boolean)Grants access to the specified permission to the grantees and the ability to grant access to other users on the user-defined aggregate.
Öffentliche MethodeGrant(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 aggregate under an assumed role.
Öffentliche MethodeGrant(ObjectPermissionSet, 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 aggregate under an assumed role.
Öffentliche MethodeInitialize()Initializes the object and forces the properties be loaded. (Geerbt von SqlSmoObject.)
Öffentliche MethodeInitialize(Boolean)Initializes the object and forces the properties be loaded. (Geerbt von SqlSmoObject.)
Geschützte MethodeIsObjectInitializedVerifies whether the object has been initialized. (Geerbt von SqlSmoObject.)
Geschützte MethodeIsObjectInSpaceVerifies whether the object is isolated or connected to the instance of SQL Server. (Geerbt von SqlSmoObject.)
Öffentliche MethodeRefreshRefreshes the UserDefinedAggregate object properties. (Überschreibt ScriptNameObjectBase.Refresh().)
Öffentliche MethodeRevoke(ObjectPermissionSet, String)Revokes a previously granted set of permissions from a grantee on the user-defined aggregate.
Öffentliche MethodeRevoke(ObjectPermissionSet, String[])Revokes a previously granted set of permissions from a list of grantees on the user-defined aggregate.
Öffentliche MethodeRevoke(ObjectPermissionSet, String, Boolean, Boolean)Revokes previously granted permissions from a grantee on the user-defined aggregate 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.
Öffentliche MethodeRevoke(ObjectPermissionSet, String[], Boolean, Boolean)Revokes previously granted permissions from grantees on the user-defined aggregate 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.
Öffentliche MethodeRevoke(ObjectPermissionSet, String, Boolean, Boolean, String)Revokes previously granted permissions from a grantee on the user-defined aggregate 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.
Öffentliche MethodeRevoke(ObjectPermissionSet, String[], Boolean, Boolean, String)Revokes previously granted permissions from grantees on the user-defined aggregate 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.
Öffentliche MethodeScript()Generates a Transact-SQL script that can be used to re-create the user-defined aggregate.
Öffentliche MethodeScript(ScriptingOptions)Generates a Transact-SQL script that can be used to re-create the user-defined aggregate as specified by the script options.
Geschützte MethodeSetParentImplSets the parent of the SqlSmoObject to the newParent parameter. (Geerbt von SqlSmoObject.)
Öffentliche MethodeToStringReturns a String that represents the referenced object. (Geerbt von SqlSmoObject.)
Öffentliche MethodeValidateValidates the state of an object. (Geerbt von SmoObjectBase.)
Zum Anfang
  NameBeschreibung
Öffentliches EreignisPropertyChangedRepresents the event that occurs when a property is changed. (Geerbt von SqlSmoObject.)
Öffentliches EreignisPropertyMetadataChangedRepresents the event that occurs when property metadata changes. (Geerbt von SqlSmoObject.)
Zum Anfang
  NameBeschreibung
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.DiscoverDiscovers any dependencies. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.GetDomainRootReturns the root of the domain. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.GetParentGets the parent of this object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.GetPropertyTypeGets the type of the specified property. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.GetPropertyValueGets the value of the specified property. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.GetUrnGets the Unified Resource Name (URN) of the object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.ResolveGets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.SetObjectStateSets the object state to the specified SfcObjectState value. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeIAlienObject.SetPropertyValueSets the property value. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate MethodeISfcPropertyProvider.GetPropertySetGets the interface reference to the set of properties of this object. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate EigenschaftISfcSupportsDesignMode.IsDesignModeGets a value that indicates whether the UserDefinedAggregate object supports design mode.
Zum Anfang

To get UserDefinedAggregate object properties, users can be a member of the public fixed server role.

To set UserDefinedAggregate object properties, users must have CREATE AGGREGATE permission on the database and also REFERENCES permission on the specified assembly.

To create a user-defined aggregate, users must have DROP AGGREGATE permission on the database or ALTER permission on the user-defined aggregate.

To grant, deny, or revoke permission on the user-defined aggregate to other users, users must have CONTROL permission on the user-defined aggregate.

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.
Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
Vielen Dank für Ihr Feedback.

Community-Beiträge

HINZUFÜGEN
Anzeigen:
© 2014 Microsoft. Alle Rechte vorbehalten.