FileGroup Clase
The FileGroup object represents a SQL Server file group.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
<PhysicalFacetAttribute> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class FileGroup _
Inherits NamedSmoObject _
Implements ICreatable, IAlterable, IDroppable, IRenamable, _
IMarkForDrop
'Uso
Dim instance As FileGroup
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class FileGroup : NamedSmoObject,
ICreatable, IAlterable, IDroppable, IRenamable, IMarkForDrop
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class FileGroup sealed : public NamedSmoObject,
ICreatable, IAlterable, IDroppable, IRenamable, IMarkForDrop
[<SealedAttribute>]
[<PhysicalFacetAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type FileGroup =
class
inherit NamedSmoObject
interface ICreatable
interface IAlterable
interface IDroppable
interface IRenamable
interface IMarkForDrop
end
public final class FileGroup extends NamedSmoObject implements ICreatable, IAlterable, IDroppable, IRenamable, IMarkForDrop
Notas
To get FileGroup object properties, users can be a member of the public fixed server role.
To set FileGroup object properties, users must have ALTER permission on the database or be a member of the db_owner fixed database role.
To create a file group, users must have ALTER permission on the database or be a member of the db_owner fixed database role.
To drop a file group, users must have ALTER permission on the database or be a member of the db_owner fixed database role.
To run CheckFileGroup and CheckFileGroupDataOnly methods, users must be a member of the db_owner fixed database role or the sysadmin fixed server role.
Thread Safety
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Jerarquía de herencia
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo..::..FileGroup
Seguridad para subprocesos
Todos los miembros públicos static (Shared en Visual Basic) de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Vea también