Поделиться через


Элементы XmlSchemaCollection

The XmlSchemaCollection object represents a collection of XML namespaces. The collection of XML namespaces behave a composite object though the namespaces can be enumerated within the collection.

Тип XmlSchemaCollection предоставляет доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод XmlSchemaCollection() () () () Initializes a new instance of the XmlSchemaCollection class.
Открытый метод XmlSchemaCollection(Database, String) Initializes a new instance of the XmlSchemaCollection class on the specified database and with the specified name.
Открытый метод XmlSchemaCollection(Database, String, String) Initializes a new instance of the XmlSchemaCollection class on the specified database and with the specified name and schema.
Открытый метод XmlSchemaCollection(Database, String, String, String) Initializes a new instance of the XmlSchemaCollection class on the specified database, with the specified name and schema, and with the specified XML schema document.

В начало

Методы

  Имя Описание
Защищенный метод AddDatabaseContext (Наследуется из SqlSmoObject.)
Открытый метод AddSchemaDocument Adds an XML schema document to the XML schema collection.
Открытый метод Alter Updates any XmlSchemaCollection object property changes on instance of Microsoft SQL Server.
Защищенный метод AlterImpl (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplInit (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод AppendCommaText (Наследуется из ScriptNameObjectBase.)
Защищенный метод AppendWithCommaText (Наследуется из ScriptNameObjectBase.)
Защищенный метод AppendWithOption (Наследуется из ScriptNameObjectBase.)
Защищенный метод BindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод BindRuleImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckCollation (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectDirty (Наследуется из ScriptNameObjectBase.)
Защищенный метод CheckObjectState() () () () Validates the state of the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод 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. (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectStateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckTextCorectness (Наследуется из ScriptNameObjectBase.)
Защищенный метод CheckTextModeSupport (Наследуется из ScriptNameObjectBase.)
Защищенный метод CheckVersion100 (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80 Checks the validity of the object on SQL Server 2000. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion90 Check the validity of the object on SQL Server 2005. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersionBelow90 (Наследуется из SqlSmoObject.)
Защищенный метод CleanObject Cleans the referenced object. (Наследуется из ScriptNameObjectBase.)
Открытый метод Create Creates an XML schema collection on the instance of Microsoft SQL Server as defined by the XmlSchemaCollection object.
Защищенный метод CreateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplInit (Наследуется из SqlSmoObject.)
Открытый метод Deny(ObjectPermissionSet, String) Denies the specified permission for the specified grantee on the XML schema collection.
Открытый метод Deny(ObjectPermissionSet, array<String> [] () [] []) Denies the specified permission for the specified grantees on the XML schema collection.
Открытый метод Deny(ObjectPermissionSet, String, Boolean) Denies access to the specified permission for the specified grantee and other users that the grantee granted the specified set of permissions on the XML schema collection.
Открытый метод Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) Denies the specified permission for the specified grantees on the XML schema collection.
Открытый метод Discover (Наследуется из SqlSmoObject.)
Открытый метод Drop Removes the XML schema collection from the instance of Microsoft SQL Server.
Защищенный метод DropImpl (Наследуется из SqlSmoObject.)
Защищенный метод DropImplWorker (Наследуется из SqlSmoObject.)
Открытый метод EnumNamespaces Enumerates a list of namespaces that are components of the XML schema collection.
Открытый метод EnumObjectPermissions() () () () Enumerates a list of object permissions for the XML schema collection.
Открытый метод EnumObjectPermissions(String) Enumerates a list of object permissions for a specified grantee on the XML schema collection.
Открытый метод EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of object permissions for a specified permission on the XML schema collection.
Открытый метод EnumObjectPermissions(String, ObjectPermissionSet) Enumerates a list of object permissions for a specified grantee and a specified permission on the XML schema collection.
Защищенный метод EnumScriptImpl (Наследуется из SqlSmoObject.)
Защищенный метод EnumScriptImplWorker (Наследуется из SqlSmoObject.)
Открытый метод EnumTypes() () () () Enumerates a list of all the types contained within the XML schema collection.
Открытый метод EnumTypes(String) Enumerates a list of all the types contained within the XML schema collection for the specified namespace.
Открытый метод Equals (Наследуется из Object.)
Защищенный метод Finalize (Наследуется из Object.)
Защищенный метод ForceTextModeOnTextBody Enforces text mode on the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод FormatSqlVariant (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceFileStreamScript (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindDefaultScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindRuleScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetBraketNameForText (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetDateTimeParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetDateTimeParameterAsInt (Наследуется из SqlSmoObject.)
Защищенный метод GetDBName Gets the database name that is associated with the object. (Наследуется из SqlSmoObject.)
Защищенный метод GetEnumParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetFragOptionString (Наследуется из SqlSmoObject.)
Защищенный метод GetGuidParameter (Наследуется из SqlSmoObject.)
Открытый метод GetHashCode (Наследуется из Object.)
Защищенный метод GetIsTextDirty Determines whether the text value is consistent with stored value. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValue (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptional (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptionalAllowNull (Наследуется из SqlSmoObject.)
Защищенный метод GetRealValue (Наследуется из SqlSmoObject.)
Защищенный метод GetScriptIncludeExists (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetScriptingOptionsForCreate (Наследуется из SqlSmoObject.)
Защищенный метод GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetServerObject (Наследуется из SqlSmoObject.)
Защищенный метод GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetTextBody() () () () Returns the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextBody(Boolean) Returns the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextHeader Returns the text header. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextMode Determines whether the script name is using text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextProperty(String) (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextProperty(String, ScriptingOptions) (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTimeSpanParameterAsInt (Наследуется из SqlSmoObject.)
Открытый метод GetType (Наследуется из Object.)
Защищенный метод GetUrnRecursive(StringBuilder) (Наследуется из SqlSmoObject.)
Защищенный метод GetUrnRecursive(StringBuilder, UrnIdOption) (Наследуется из SqlSmoObject.)
Открытый метод Grant(ObjectPermissionSet, String) Grants the specified set of permissions to the specified grantee on the XML schema collection.
Открытый метод Grant(ObjectPermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the XML schema collection.
Открытый метод 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 XML schema collection.
Открытый метод 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 XML schema collection.
Открытый метод Grant(ObjectPermissionSet, String, Boolean, String) Grants the specified set of permissions and the ability to grant access to other uses for the specified grantee on the XML schema collection.
Открытый метод Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) Grants access to the specified set of permissions and the ability to grant the set of permissions to other users on the XML schema collection under an assumed role.
Защищенный метод ImplInitialize (Наследуется из SqlSmoObject.)
Открытый метод Initialize() () () () Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Открытый метод Initialize(Boolean) Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Наследуется из ScriptNameObjectBase.)
Защищенный метод IsObjectInitialized Verifies whether the object has been initialized. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Наследуется из SqlSmoObject.)
Защищенный метод IsVersion80SP3 (Наследуется из SqlSmoObject.)
Защищенный метод MarkDropped (Наследуется из SqlSmoObject.)
Защищенный метод MarkForDropImpl (Наследуется из SqlSmoObject.)
Защищенный метод MemberwiseClone (Наследуется из Object.)
Защищенный метод PostAlter (Наследуется из SqlSmoObject.)
Защищенный метод PostCreate (Наследуется из SqlSmoObject.)
Защищенный метод PostDrop (Наследуется из SqlSmoObject.)
Открытый метод Refresh Refreshes the script name. (Наследуется из ScriptNameObjectBase.)
Защищенный метод RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Открытый метод Revoke(ObjectPermissionSet, String) Revokes a previously granted set of permissions from a grantee on the XML schema collection.
Открытый метод Revoke(ObjectPermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the XML schema collection.
Открытый метод Revoke(ObjectPermissionSet, String, Boolean, Boolean) Revokes previously granted permissions from a grantee on the XML schema collection 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> [] () [] [], Boolean, Boolean) Revokes previously granted permissions from grantees on the XML schema collection 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, Boolean, Boolean, String) Revokes previously granted permissions from a grantee on the XML schema collection 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> [] () [] [], Boolean, Boolean, String) Revokes previously granted permissions from grantees on the XML schema collection 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.
Открытый метод Script() () () () Generates a Transact-SQL script that can be used to re-create the XML schema collection.
Открытый метод Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the XML schema collection as specified by the script options.
Защищенный метод ScriptAlter (Наследуется из SqlSmoObject.)
Защищенный метод ScriptAnsiQI (Наследуется из ScriptNameObjectBase.)
Защищенный метод ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод ScriptCreate (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDdl (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDrop (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl() () () () (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl(ScriptingOptions) (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод ScriptInformativeHeaders (Наследуется из ScriptNameObjectBase.)
Защищенный метод ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод SetCollectionTextMode Sets the collection text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SetParentImpl (Наследуется из SqlSmoObject.)
Защищенный метод SetTextBody Specifies the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SetTextHeader Specifies the text header. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SetTextMode Specifies the text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SwitchTextMode Switches the text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод ThrowIfTextIsDirtyForAlter (Наследуется из ScriptNameObjectBase.)
Открытый метод ToString Returns a String that represents the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод TouchImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindRuleImpl (Наследуется из SqlSmoObject.)
Открытый метод Validate (Наследуется из SmoObjectBase.)

В начало

Поля

  Имя Описание
Защищенное поле m_ExtendedProperties (Наследуется из SqlSmoObject.)

В начало

Свойства

  Имя Описание
Открытое свойство CreateDate Gets the date and time when the XML schema collection was created.
Открытое свойство DateLastModified Gets the date and time when the XML schema collection was last modified.
Защищенное свойство ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Наследуется из SqlSmoObject.)
Открытое свойство ExtendedProperties Represents a collection of ExtendedProperty objects that contain information about the extended properties of the XmlSchemaCollection object.
Открытое свойство ID Gets the ID value that uniquely identifies the XML schema collection.
Защищенное свойство IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Наследуется из SqlSmoObject.)
Открытое свойство Name Gets or sets the name of the Schema Object Base. (Наследуется из ScriptSchemaObjectBase.)
Защищенное свойство 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. (Наследуется из SqlSmoObject.)
Открытое свойство Parent Gets the Database object that is the parent of the XmlSchemaCollection object.
Открытое свойство Properties Gets a collection of Property objects that represent the object properties. (Наследуется из SqlSmoObject.)
Защищенное свойство ScalarResult Gets the scalar result for the referenced object. (Наследуется из SqlSmoObject.)
Открытое свойство Schema Gets or sets the schema. (Наследуется из ScriptSchemaObjectBase.)
Открытое свойство State Gets the state of the referenced object. (Наследуется из SmoObjectBase.)
Открытое свойство Text Gets or sets the text that defines all of the schemas in the XML schema collection.
Открытое свойство Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Наследуется из SqlSmoObject.)
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Наследуется из SmoObjectBase.)

В начало

События

  Имя Описание
Открытое событие PropertyChanged (Наследуется из SqlSmoObject.)
Открытое событие PropertyMetadataChanged (Наследуется из SqlSmoObject.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод IAlienObjectDiscover (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetParent (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetProperty (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод ISfcPropertyProviderGetPropertySet (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetUrn (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectResolve (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectSetProperty (Наследуется из SqlSmoObject.)

В начало