Share via


View 類別

The View object represents a SQL Server view.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
Public NotInheritable Class View _
    Inherits TableViewBase _
    Implements IColumnPermission, IObjectPermission, ICreatable, IAlterable,  _
    IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions,  _
    IDmfFacet
'用途
Dim instance As View
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)]
public sealed class View : TableViewBase, IColumnPermission, 
    IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, 
    IExtendedProperties, ITextObject, IViewOptions, IDmfFacet
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)]
public ref class View sealed : public TableViewBase, 
    IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable, 
    IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
type View =  
    class
        inherit TableViewBase
        interface IColumnPermission
        interface IObjectPermission
        interface ICreatable
        interface IAlterable
        interface IDroppable
        interface IRenamable
        interface IExtendedProperties
        interface ITextObject
        interface IViewOptions
        interface IDmfFacet
    end
public final class View extends TableViewBase implements IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet

備註

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

To set View object properties, ALTER permission on the view or ALTER VIEW permission on the database.

To create a view, users must CREATE VIEW permission on the database and ALTER permission on the specified schema.

To drop a view, users must have CONTROL permission on the view and ALTER permission on the specified schema.

To grant, deny, or revoke permissions on the view to other users, users must have CONTROL permission on the view.

Thread Safety

這種類型的任何公用靜態 (在 Microsoft Visual Basic 中則為 Shared) 成員都可用於多執行緒作業。並不是所有的執行個體成員都保證可以用於所有的執行緒。

執行緒安全性

這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。