Classe View
The View object represents a SQL Server view.
Hierarquia de herança
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .ScriptNameObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .ScriptSchemaObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .TableViewTableTypeBase
Microsoft.SqlServer.Management.Smo. . :: . .TableViewBase
Microsoft.SqlServer.Management.Smo..::..View
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class View _
Inherits TableViewBase _
Implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, _
IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, _
IViewOptions, IDmfFacet
'Uso
Dim instance As View
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class View : TableViewBase, ISfcSupportsDesignMode,
IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable,
IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class View sealed : public TableViewBase,
ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable,
IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions,
IDmfFacet
[<SealedAttribute>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type View =
class
inherit TableViewBase
interface ISfcSupportsDesignMode
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 ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet
O tipo View expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
View() () () () | Initializes a new instance of the View object. | |
View(Database, String) | Initializes a new instance of the View object on the specified database and with the specified name. | |
View(Database, String, String) | Initializes a new instance of the View object on the specified database and with the specified name and schema. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
AnsiNullsStatus | Gets the Boolean property value that specifies whether ISO NULL handling is enabled on the view. | |
Columns | Obtém uma coleção de colunas. (Herdado de TableViewTableTypeBase.) | |
CreateDate | Gets the time and date when the view was created. | |
DateLastModified | Gets the time and date when the view was last modified. | |
Events | Gets the events associated with the view. | |
ExecuteForScalar | Obtém ou define o valor da propriedade Boolean que especifica se o objeto esta definido para a opção execute for scalar. (Herdado de SqlSmoObject.) | |
ExtendedProperties | Obtém uma coleção de propriedades estendidas. (Herdado de TableViewTableTypeBase.) | |
FullTextIndex | Gets the full text index on the table or view. (Herdado de TableViewBase.) | |
HasAfterTrigger | Gets the Boolean property value that specifies whether the view has any after triggers. | |
HasColumnSpecification | Gets the Boolean property that specifies whether the view has a column specification. | |
HasDeleteTrigger | Gets the Boolean property value that specifies whether the view has a delete trigger. | |
HasIndex | Gets the Boolean property value that specifies whether the view has at least one index. | |
HasInsertTrigger | Gets the Boolean property value that specifies whether the view has an insert trigger. | |
HasInsteadOfTrigger | Gets the Boolean property value that specifies whether the view has any instead of triggers. | |
HasUpdateTrigger | Gets the Boolean property value that specifies whether the view has at least one update trigger. | |
ID | Gets the ID value that uniquely identifies the view. | |
Indexes | Gets the IndexCollection object. (Substitui TableViewTableTypeBase. . :: . .Indexes.) | |
IsEncrypted | Gets or sets the Boolean property that specifies whether the view is encrypted. | |
IsIndexable | Gets the Boolean property that specifies whether it is possible to place an index on the view. | |
IsSchemaBound | Gets or sets the Boolean property that specifies whether a schema is bound to the view. | |
IsSchemaOwned | Gets a Boolean value that indicates whether the View object is owned by a schema. | |
IsSystemObject | Gets the Boolean property value that specifies whether the view is a system object. | |
IsTouched | Obtém o valor da propriedade Boolean que especifica se as propriedades do objeto foram atualizadas, mas ainda não foram persistidas no servidor. (Herdado de SqlSmoObject.) | |
Name | Obtém ou define um valor String que especifica o nome do tipo de tabela de exibição. (Herdado de TableViewTableTypeBase.) | |
ObjectInSpace | Obtém o valor da propriedade Boolean que especifica se o objeto existe em isolamento ou se está direta ou indiretamente conectado com a instância do SQL Server. (Herdado de SqlSmoObject.) | |
Owner | Gets the name of the owner of the UserDefinedType object. | |
Parent | Gets the Database object that is the parent of the View object. | |
Properties | Obtém uma coleção de objetos Property que representam as propriedades do objeto. (Herdado de SqlSmoObject.) | |
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. | |
ReturnsViewMetadata | Gets or sets a Boolean property value that specifies whether the view returns metadata. | |
ScalarResult | Obtém o resultado escalar do objeto referenciado. (Herdado de SqlSmoObject.) | |
Schema | Obtém ou define um valor String que especifica o nome do esquema que contém o tipo de tabela de exibição. (Herdado de TableViewTableTypeBase.) | |
State | Gets the state of the referenced object. (Herdado de SmoObjectBase.) | |
Statistics | Represents a collection of Statistic objects. Each Statistic object represents a statistic counter that is defined on the table or view. (Herdado de TableViewBase.) | |
TextBody | Gets or sets the Transact-SQL string that defines the view. | |
TextHeader | Gets or sets the header part of the Transact-SQL string that defines the view. | |
TextMode | Gets or sets the Boolean property that specifies whether the text header is editable as text. | |
Triggers | Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view. (Herdado de TableViewBase.) | |
Urn | Obtém o valor do endereço do URN (Uniform Resource Name) que identifica exclusivamente o objeto. (Herdado de SqlSmoObject.) | |
UserData | Gets or sets user-defined data associated with the referenced object. (Herdado de SmoObjectBase.) |
Início
Métodos
Nome | Descrição | |
---|---|---|
AddDatabaseContext(StringCollection) | Adiciona o contexto do banco de dados à coleção de consultas identificadas pelo parâmetro queries. (Herdado de SqlSmoObject.) | |
AddDatabaseContext(StringCollection, ScriptingOptions) | Adiciona o contexto de banco de dados à coleção de consultas identificadas pelo parâmetro queries e usando as opções de script especificadas. (Herdado de SqlSmoObject.) | |
Alter | Updates any View object property changes on the instance of Microsoft SQL Server. | |
AlterImpl | Ativa o evento alterado do objeto. (Herdado de SqlSmoObject.) | |
AlterImplFinish | Método chamado quando o evento alterado do objeto é concluído. (Herdado de SqlSmoObject.) | |
AlterImplInit | Método chamado quando o evento de alteração do objeto é inicializado. (Herdado de SqlSmoObject.) | |
AlterImplWorker | Chama os métodos Alter. (Herdado de SqlSmoObject.) | |
AppendCommaText | Appends text, optionally separated by a comma. (Herdado de ScriptNameObjectBase.) | |
AppendWithCommaText | Appends text, optionally separated by a comma. (Herdado de ScriptNameObjectBase.) | |
AppendWithOption | Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Herdado de ScriptNameObjectBase.) | |
AutoGenerateName | Generates a name based on the object Guid. (Herdado de ScriptNameObjectBase.) | |
BindDefaultImpl | Associa os itens padrão identificados pelos parâmetros. (Herdado de SqlSmoObject.) | |
BindRuleImpl | Associa o esquema de regra à regra e às colunas identificadas pelos parâmetros. (Herdado de SqlSmoObject.) | |
ChangeSchema | Changes the schema for the view. | |
CheckCollation | Verifica a ordem das opções de script pelo método de agrupamento identificado pelo parâmetro collationName. (Herdado de SqlSmoObject.) | |
CheckObjectDirty | Checks whether object has been modified and not persisted. (Herdado de ScriptNameObjectBase.) | |
CheckObjectState() () () () | Valida o estado do objeto referenciado. (Herdado de SqlSmoObject.) | |
CheckObjectState(Boolean) | Valida o estado do objeto referenciado com a opção de especificar que uma exceção será gerada se o objeto ainda não tiver sido criado. (Herdado de SqlSmoObject.) | |
CheckObjectStateImpl | Verifica o estado de um SqlSmoObject. (Herdado de SqlSmoObject.) | |
CheckTextCorectness | Checks text for correctness against the parameters. (Herdado de ScriptNameObjectBase.) | |
CheckTextModeSupport | Checks mode of support. (Herdado de ScriptNameObjectBase.) | |
CheckVersion100 | Verifica se a versão do SQL Server é SQL Server 2008. (Herdado de SqlSmoObject.) | |
CheckVersion80 | Verifica a validade do objeto no SQL Server 2000. (Herdado de SqlSmoObject.) | |
CheckVersion80SP3 | Verifica a validade do objeto no SQL Server 2000 SP3. (Herdado de SqlSmoObject.) | |
CheckVersion90 | Verifica a validade do objeto no SQL Server 2005. (Herdado de SqlSmoObject.) | |
CheckVersionBelow90 | Verifica se a versão do SQL Server é anterior ao SQL Server 2005. (Herdado de SqlSmoObject.) | |
CleanObject | Cleans the referenced object. (Herdado de ScriptNameObjectBase.) | |
Create | Creates a view on the instance of SQL Server as defined by the View object. | |
CreateImpl | Cria um objeto com as opções do script. (Herdado de SqlSmoObject.) | |
CreateImplFinish | Método chamado quando o evento de criação é concluído. (Herdado de SqlSmoObject.) | |
CreateImplInit | Método chamado quando o evento de criação é inicializado. (Herdado de SqlSmoObject.) | |
Deny(ObjectPermissionSet, String) | Denies the specified set of permissions for the specified grantee on the view. | |
Deny(ObjectPermissionSet, array<String> [] () [] []) | Denies the specified set of permissions for the specified grantees on the view. | |
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 view. | |
Deny(ObjectPermissionSet, String, array<String> [] () [] []) | Denies the specified set of permissions to the grantee on the specified columns on the view. | |
Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) | Denies the specified permission for the specified grantees on the view. | |
Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Denies the specified set of permissions for the grantees on the specified columns on the view. | |
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 view. | |
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 view. | |
Discover | Descobre uma lista do tipo Object. (Herdado de SqlSmoObject.) | |
Drop | Removes the view from the database. | |
DropImpl | Remove um SqlSmoObject. (Herdado de SqlSmoObject.) | |
DropImplWorker | Chama os métodos de remoção. (Herdado de SqlSmoObject.) | |
EnumColumnPermissions() () () () | Enumerates a list of column permissions for the view. | |
EnumColumnPermissions(String) | Enumerates a list of column permissions for a specified grantee on the view. | |
EnumColumnPermissions(ObjectPermissionSet) | Enumerates a list of column permissions for a specified permission on the view. | |
EnumColumnPermissions(String, ObjectPermissionSet) | Enumerates a list of column permissions for a specified grantee and a specified permission on the view. | |
EnumColumns | Enumerates a list of columns defined in the view. | |
EnumFragmentation() () () () | Enumerates information about fragments of data that are stored in a table or view. (Herdado de TableViewBase.) | |
EnumFragmentation(FragmentationOption) | Enumerates information about fragments of data that are stored in a table or view with the option to specify how detailed the results should be. (Herdado de TableViewBase.) | |
EnumFragmentation(FragmentationOption, Int32) | Enumerates information about fragments of data that are stored in a table or view on a specified partition, and with the option to specify how detailed the results should be. (Herdado de TableViewBase.) | |
EnumObjectPermissions() () () () | Enumerates a list of object permissions for the view. | |
EnumObjectPermissions(String) | Enumerates a list of object permissions for a specified grantee on the view. | |
EnumObjectPermissions(ObjectPermissionSet) | Enumerates a list of object permissions for a specified permission on the view. | |
EnumObjectPermissions(String, ObjectPermissionSet) | Enumerates a list of object permissions for a specified grantee and a specified permission on the view. | |
EnumScriptImpl | Enumera scripts especificados pelo parâmetro so. (Herdado de SqlSmoObject.) | |
EnumScriptImplWorker | Chama os métodos que enumeram scripts especificados pelo parâmetro so. (Herdado de SqlSmoObject.) | |
EnumScriptImplWorkerSOChanged | Retorna uma cadeia de caracteres IEnumerable que descreve as opções de script de um objeto. (Herdado de SqlSmoObject.) | |
Equals | (Herdado de Object.) | |
ExecuteNonQuery | (Herdado de SqlSmoObject.) | |
Finalize | (Herdado de Object.) | |
ForceTextModeOnTextBody | Enforces text mode on the text body. (Herdado de ScriptNameObjectBase.) | |
FormatSqlVariant | Formata um objeto como tipo SqlVariant. (Herdado de SqlSmoObject.) | |
GenerateDataSpaceFileStreamScript | Gera um script para criar arquivo de dados. (Herdado de SqlSmoObject.) | |
GenerateDataSpaceScript | Gera um script para alocar espaço no arquivo de dados. (Herdado de SqlSmoObject.) | |
GetBindDefaultScript | Obtém o script que associa padrões especificados pelos parâmetros defSchema e defName. (Herdado de SqlSmoObject.) | |
GetBindRuleScript | Obtém o script que especifica as regras de associação. (Herdado de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Atribui um parâmetro booliano do SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Atribui uma propriedade booliana do SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetBraketNameForText | Gets the bracket name. (Herdado de ScriptNameObjectBase.) | |
GetDateTimeParameter | Atribui a propriedade datetime do SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetDateTimeParameterAsInt | Atribuirá a propriedade datetime do SqlSmoObject como um valor inteiro se a propriedade datetime não for nula. (Herdado de SqlSmoObject.) | |
GetDBName | Obtém o nome do banco de dados associado ao objeto. (Herdado de SqlSmoObject.) | |
GetEnumParameter | Atribui uma propriedade de enumeração do SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetFragOptionString | Obtém um objeto FragmentationOption como um valor de cadeia de caracteres. (Herdado de SqlSmoObject.) | |
GetGuidParameter | Atribui uma propriedade Guid do SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetHashCode | (Herdado de Object.) | |
GetIsSystemNamed | Gets a Boolean value that specifies whether the system is named. (Herdado de ScriptNameObjectBase.) | |
GetIsTextDirty | Determines whether the text value is consistent with stored value. (Herdado de ScriptNameObjectBase.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Atribui um parâmetro do SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Atribui um parâmetro do SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetPropValue | Obtém um valor da propriedade do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetPropValueOptional | Obtém um valor da propriedade do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetPropValueOptionalAllowNull | Obtém um valor da propriedade do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetRealValue | Obtém um valor da propriedade do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetScriptIncludeExists | Gets the script including the test for existence of type being scripted. (Herdado de ScriptNameObjectBase.) | |
GetScriptingOptionsForCreate | Obtém ScriptingOptions para o objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetServerName | Obtém o nome da instância do SQL Server à qual o objeto está associado. (Herdado de SqlSmoObject.) | |
GetServerObject | Obtém o servidor do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetSqlServerVersionName | Obtém o nome da versão da instância do SQL Server à qual o objeto está associado. (Herdado de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Atribui um parâmetro de cadeia de caracteres do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Atribui um parâmetro de cadeia de caracteres do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetTextBody() () () () | Returns the text body. (Herdado de ScriptNameObjectBase.) | |
GetTextBody(Boolean) | Returns the text body. (Herdado de ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) | Gets the text for scripting. (Herdado de ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) | Gets the text of script object. (Herdado de ScriptNameObjectBase.) | |
GetTextHeader | Returns the text header. (Herdado de ScriptNameObjectBase.) | |
GetTextMode | Determines whether the script name is using text mode. (Herdado de ScriptNameObjectBase.) | |
GetTextProperty(String) | Gets the property as text. (Herdado de ScriptNameObjectBase.) | |
GetTextProperty(String, ScriptingOptions) | Gets the property as text. (Herdado de ScriptNameObjectBase.) | |
GetTimeSpanParameterAsInt | Atribui um parâmetro de período de tempo do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetType | (Herdado de Object.) | |
GetUrnRecursive(StringBuilder) | Atribui um objeto Urn do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
GetUrnRecursive(StringBuilder, UrnIdOption) | Atribui um objeto Urn do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
Grant(ObjectPermissionSet, String) | Grants the specified set of permissions to the specified grantee on the view. | |
Grant(ObjectPermissionSet, array<String> [] () [] []) | Grants the specified set of permissions to the specified grantees on the view. | |
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 view. | |
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 view. | |
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 view. | |
Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Grants the specified set of permissions to the grantees to the specified columns on the view. | |
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 view under an assumed role. | |
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 view. | |
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 view under an assumed role. | |
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 view. | |
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 view under an assumed role. | |
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 view under an assumed role. | |
ImplInitialize | Inicializa os campos do objeto SqlSmoObject. (Herdado de SqlSmoObject.) | |
Initialize() () () () | Inicializa o objeto e força o carregamento das propriedades. (Herdado de SqlSmoObject.) | |
Initialize(Boolean) | Inicializa o objeto e força o carregamento das propriedades. (Herdado de SqlSmoObject.) | |
IsObjectDirty | Determines whether the referenced object is consistent with the stored object. (Herdado de ScriptNameObjectBase.) | |
IsObjectInitialized | Verifica se o objeto foi inicializado. (Herdado de SqlSmoObject.) | |
IsObjectInSpace | Verifica se o objeto está isolado ou conectado com a instância do SQL Server. (Herdado de SqlSmoObject.) | |
IsVersion80SP3 | Determina se a versão do SQL Server é SQL Server 2000 com SP3. (Herdado de SqlSmoObject.) | |
IsVersion90AndAbove | Determina se a versão do SQL Server é SQL Server 2005 ou posterior. (Herdado de SqlSmoObject.) | |
MarkDropped | Marca o estado do objeto atual e todas as coleções filho a serem Dropped. (Herdado de TableViewTableTypeBase.) | |
MarkForDropImpl | Define o SqlSmoState como removido. (Herdado de SqlSmoObject.) | |
MemberwiseClone | (Herdado de Object.) | |
PostAlter | Método ativado depois da alteração do SqlSmoObject. (Herdado de SqlSmoObject.) | |
PostCreate | Método ativado depois da criação do SqlSmoObject. (Herdado de SqlSmoObject.) | |
PostDrop | Método ativado depois da remoção do SqlSmoObject. (Herdado de SqlSmoObject.) | |
ReCompileReferences | Recompiles any view or trigger that depends on the base SMO object. (Herdado de TableViewBase.) | |
Refresh() () () () | Refreshes the View object or Table object properties. (Herdado de TableViewBase.) | |
Refresh(Boolean) | Refreshes the View object properties with the option to refresh metadata. | |
Rename | Renames the view. | |
RenameImpl | Identificado apenas para fins informativos. Sem suporte. A compatibilidade futura não está garantida. (Herdado de NamedSmoObject.) | |
RenameImplWorker | Identificado apenas para fins informativos. Sem suporte. A compatibilidade futura não está garantida. (Herdado de NamedSmoObject.) | |
ResetDesignModeScriptingOptions | Redefine opções conforme especificado pelo parâmetro options. (Herdado de ScriptSchemaObjectBase.) | |
Revoke(ObjectPermissionSet, String) | Revokes a previously granted set of permissions from a grantee on the view. | |
Revoke(ObjectPermissionSet, array<String> [] () [] []) | Revokes a previously granted set of permissions from a list of grantees on the view. | |
Revoke(ObjectPermissionSet, String, array<String> [] () [] []) | Revokes a previously granted set of permissions from a grantee on the specified columns on the view. | |
Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Revokes a previously granted set of permissions from a list of grantees on the specified columns on the view. | |
Revoke(ObjectPermissionSet, String, Boolean, Boolean) | Revokes a previously granted set of permissions from a grantee on the view 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. | |
Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) | Revokes a previously granted set of permissions from grantees on the view 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. | |
Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) | Revokes a previously granted set of permissions from a grantee from the view 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. | |
Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean) | Revokes a previously granted set of permissions from grantees on the specified columns on the view 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. | |
Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) | Revokes a previously granted set of permissions from grantees on the view 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. | |
Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean) | Revokes a previously granted set of permissions from grantees on the specified columns on the view 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. | |
Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean, String) | Revokes a previously granted set of permissions from a grantee on the specified columns on the view 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. | |
Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean, String) | Revokes a previously granted set of permissions from the grantees for the specified columns on the view and any other users to whom the grantee has granted access. The grantee is also given the ability to revoke other users' access under an assumed role. | |
Script() () () () | Gera um script Transact-SQL que pode ser usado para recriar o objeto de banco de dados. (Herdado de TableViewTableTypeBase.) | |
Script(ScriptingOptions) | Gera um script Transact-SQL que pode ser usado para recriar o objeto de banco de dados com as opções de script especificadas. (Herdado de TableViewTableTypeBase.) | |
ScriptAlter | Altera o SqlSmoObject de acordo com os parâmetros. (Herdado de SqlSmoObject.) | |
ScriptAnsiQI | Scripts the database object in ANSI text. (Herdado de ScriptNameObjectBase.) | |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Herdado de NamedSmoObject.) | |
ScriptCreate | Altera o SqlSmoObject de acordo com os parâmetros. (Herdado de SqlSmoObject.) | |
ScriptDdl | Gera a InvalidSmoOperationException. (Herdado de SqlSmoObject.) | |
ScriptDrop | Gera a InvalidSmoOperationException. (Herdado de SqlSmoObject.) | |
ScriptHeader | Returns the text header with the option to modify the text. | |
ScriptImpl() () () () | Obtém uma coleção de scripts do SqlSmoObject. (Herdado de SqlSmoObject.) | |
ScriptImpl(ScriptingOptions) | Obtém uma coleção de scripts do SqlSmoObject. (Herdado de SqlSmoObject.) | |
ScriptImplWorker | Obtém uma coleção de scripts do SqlSmoObject. (Herdado de SqlSmoObject.) | |
ScriptInformativeHeaders | Scripts the information headers. (Herdado de ScriptNameObjectBase.) | |
ScriptOwner | Alters the script owner authorization. (Herdado de NamedSmoObject.) | |
ScriptRename | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Herdado de NamedSmoObject.) | |
SetCollectionTextMode | Sets the collection text mode. (Herdado de ScriptNameObjectBase.) | |
SetIsSystemNamed | Sets a Boolean value that specifies whether the system is named. (Herdado de ScriptNameObjectBase.) | |
SetParentImpl | Define o pai do SqlSmoObject como o parâmetro newParent. (Herdado de SqlSmoObject.) | |
SetSchemaOwned | Sets the schema owned value. (Herdado de NamedSmoObject.) | |
SetTextBody | Specifies the text body. (Herdado de ScriptNameObjectBase.) | |
SetTextHeader | Specifies the text header. (Herdado de ScriptNameObjectBase.) | |
SetTextMode | Specifies the text mode. (Herdado de ScriptNameObjectBase.) | |
StoreConstraintsFlags | Armazena sinalizadores de restrições conforme especificado pelo parâmetro options. (Herdado de ScriptSchemaObjectBase.) | |
SwitchTextMode | Switches the text mode. (Herdado de ScriptNameObjectBase.) | |
ThrowIfTextIsDirtyForAlter | Throws an exception of text has been modified and not persisted. (Herdado de ScriptNameObjectBase.) | |
ToString | Retorna um String que representa o objeto referenciado. (Herdado de SqlSmoObject.) | |
TouchImpl | Não implementado. (Herdado de SqlSmoObject.) | |
UnbindDefaultImpl | Desassocia as colunas padrão do SqlSmoObject. (Herdado de SqlSmoObject.) | |
UnbindRuleImpl | Desassocia as regras do SqlSmoObject. (Herdado de SqlSmoObject.) | |
UpdateStatistics() () () () | Updates statistics for the table or view. (Herdado de TableViewBase.) | |
UpdateStatistics(StatisticsTarget, StatisticsScanType) | Updates the statistics for the table or view with the option to specify the target and the type of scan performed. (Herdado de TableViewBase.) | |
UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32) | Updates the statistics for the table or view with the option to specify the target, the type of scan performed, and the sample size. (Herdado de TableViewBase.) | |
UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32, Boolean) | Updates the statistics for the table or view with the option to specify the target, the type of scan performed, the sample size, and whether to recompute the statistics. (Herdado de TableViewBase.) | |
Validate | Validates the state of an object. (Herdado de SmoObjectBase.) |
Início
Eventos
Nome | Descrição | |
---|---|---|
PropertyChanged | Representa o evento que ocorre quando uma propriedade é alterada. (Herdado de SqlSmoObject.) | |
PropertyMetadataChanged | Representa o evento que ocorre quando os metadados da propriedade são alterados. (Herdado de SqlSmoObject.) |
Início
Campos
Nome | Descrição | |
---|---|---|
m_ExtendedProperties | Representa uma propriedade definida para estender as propriedades fornecidas por um SqlSmoObject. (Herdado de SqlSmoObject.) | |
singletonParent | Representa o pai do singleton. (Herdado de SqlSmoObject.) |
Início
Implementações de interfaces explícitas
Nome | Descrição | |
---|---|---|
IAlienObject. . :: . .Discover | Descobre quaisquer dependências. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .GetDomainRoot | Retorna a raiz do domínio. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .GetParent | Obtém o pai do objeto. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .GetPropertyType | Obtém o tipo da propriedade especificada. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .GetPropertyValue | Obtém o valor da propriedade especificada. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .GetUrn | Obtém o Unified Resource Name do objeto. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .Resolve | Obtém a instância que contém as informações sobre o objeto a partir do Unified Resource Name do objeto. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .SetObjectState | Define o estado do objeto como o valor SfcObjectState especificado. (Herdado de SqlSmoObject.) | |
IAlienObject. . :: . .SetPropertyValue | Define o valor da propriedade. (Herdado de SqlSmoObject.) | |
ISfcPropertyProvider. . :: . .GetPropertySet | Obtém a referência da interface para o conjunto de propriedades deste objeto. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SqlSmoObject.) | |
ISfcSupportsDesignMode. . :: . .IsDesignMode | Identificado apenas para fins informativos. Sem suporte. A compatibilidade futura não está garantida. Gets a Boolean value that indicates whether the object supports design mode. |
Início
Comentários
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
Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.
Consulte também