共用方式為


ManagedInstance 類別

The ManagedInstance type represents an instance of SQL Server that is managed by the SQL Server Utility services to control policy, and deployments.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
    Microsoft.SqlServer.Management.Utility..::..ManagedInstance

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

語法

'宣告
Public Class ManagedInstance _
    Inherits SfcInstance _
    Implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
'用途
Dim instance As ManagedInstance
public class ManagedInstance : SfcInstance, 
    ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
public ref class ManagedInstance : public SfcInstance, 
    ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
type ManagedInstance =  
    class
        inherit SfcInstance
        interface ISfcCreatable
        interface ICreatable
        interface ISfcDroppable
        interface IDroppable
    end
public class ManagedInstance extends SfcInstance implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable

ManagedInstance 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ManagedInstance Initializes a new instance of the ManagedInstance class.

上層

屬性

  名稱 說明
受保護的屬性 AbstractIdentityKey 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用屬性 AgentProxyAccount Gets the SQL Server Agent proxy account used to run scheduled jobs on the instance of SQL Server.
公用屬性 BackupDirectory Gets the backup directory for the server instance.
公用屬性 CacheDirectory Gets the cache directory where temporary files can be stored during deployment onto the instance of SQL Server.
公用屬性 Collation Gets the collation for the server instance.
公用屬性 ComputerNamePhysicalNetBIOS Gives the physical NetBIOS for the server instance.
公用屬性 ComputerProcessorHealthState Gets the computer processor health state.
公用屬性 CpuMaxClockSpeed Gets the maximum clock speed of the CPU.
公用屬性 CpuName Gets the name of the CPU.
公用屬性 DateCreated Gets the time and date when the ManagedInstance object was created.
公用屬性 Edition Gets the edition of the instance of SQL Server.
公用屬性 EngineEdition Gets the engine edition for the instance of SQL Server.
公用屬性 FileSpaceHealthState Gets the file space health state.
公用屬性 ID Gets ID value that uniquely identifies the managed instance of SQL Server.
公用屬性 IdentityKey Gets the key value that identifies the managed instance.
公用屬性 InstanceName Gets the name of the instance of SQL Server.
公用屬性 IsCaseSensitive Gets a value that indicates whether the server instance is case-sensitive.
公用屬性 IsClustered Gets a value that indicates whether the server instance is part of a clustered server.
公用屬性 IsPolicyOverridden Gets a value that indicates whether any of the server instance policies have been overridden.
公用屬性 Language Gets the language used by the managed instance of SQL Server.
公用屬性 LastReportedTime Gets the latest reported time for the properties of the server instance object.
公用屬性 ManagementState Gets the current state of instance of SQL Server with regard to being managed by the SQL Server Utility service.
公用屬性 Metadata Returns metadata about the instance and its domain. (繼承自 SfcInstance。)
公用屬性 Name Gets or sets the name of the managed instance.
公用屬性 NetName Gets the NetBIOS name of the network on which the server instance is running.
公用屬性 OSVersion Gets the operating system version of the managed instance of SQL Server.
公用屬性 Parent Gets or sets the Utility object that is the parent of the ManagedInstance object.
公用屬性 PhysicalMemory Gets the physical memory of the managed instance of SQL Server.
公用屬性 Processors Gets the number of processors for the managed instance of SQL Server.
公用屬性 ProductLevel Gets the product level of the server instance.
公用屬性 Properties Returns a collection instance properties. (繼承自 SfcInstance。)
受保護的屬性 PropertyStorageProvider 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用屬性 ServerProcessorHealthState Gets the server instance processor health state.
公用屬性 ServerType Gets the type of the server instance.
公用屬性 ServerUrn Gets the uniform resource name (URN) of the server instance.
受保護的屬性 State Returns the state of the SfcInstance object. (繼承自 SfcInstance。)
公用屬性 Urn Returns the uniform resource name of the SfcInstance object. (繼承自 SfcInstance。)
公用屬性 Version Specifies the version of the server instance.
公用屬性 VolumeSpaceHealthState Gets the volume space health state.

上層

方法

  名稱 說明
受保護的方法 AlterImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CheckObjectCreated 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CheckObjectState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CreateIdentityKey Creates an SfcKey object. (覆寫 SfcInstance. . :: . .CreateIdentityKey() () () ()。)
受保護的方法 CreateImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Discover 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 DropImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
受保護的方法 GetChildCollection Throws a UtilityException. There is no such collection. (覆寫 SfcInstance. . :: . .GetChildCollection(String)。)
公用方法 GetDomain 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 GetHashCode (繼承自 Object。)
公用方法靜態成員 GetObjectFactory Gets the factory object used to create new instances.
公用方法 GetPropertySet Returns the set of properties for the SfcInstance object. (繼承自 SfcInstance。)
公用方法 GetType (繼承自 Object。)
受保護的方法 GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 InitializeUIPropertyState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MarkForDropImpl Returns a value that indicates the existing objects to be dropped. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MarkRootAsConnected 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 MoveImpl Indicates the new parent object to move in an instance. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (繼承自 SfcInstance。)
受保護的方法 OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (繼承自 SfcInstance。)
受保護的方法 PostAlter 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostCreate Sets the ID property of the base type to the execution result. (覆寫 SfcInstance. . :: . .PostCreate(Object)。)
受保護的方法 PostDrop 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostMove 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostRename 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Refresh Refreshes the object's properties by reading them from the server. (繼承自 SfcInstance。)
公用方法 Remove Gets the parent SqlStoreConnection object.
受保護的方法 RenameImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 ResetKey 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Serialize Serializes the instance to XML. (繼承自 SfcInstance。)
公用方法 ToString Returns a string representation of the instance Urn. (繼承自 SfcInstance。)
受保護的方法 UpdateUIPropertyState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 Validate Indicates the basic child object's validation. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)

上層

事件

  名稱 說明
受保護的事件 propertyChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用事件 PropertyChanged CLS-compliant event for property changes. (繼承自 SfcInstance。)
受保護的事件 propertyMetadataChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用事件 PropertyMetadataChanged CLS-compliant event for property metadata changes. (繼承自 SfcInstance。)

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 ICreatable. . :: . .Create Tests whether the state is managed and creates a server and connection if in the managed state.
明確介面實作私用方法 IDroppable. . :: . .Drop Tests whether state is managed and drops the instance if it is managed.
明確介面實作私用方法 ISfcCreatable. . :: . .ScriptCreate Creates an ISfcScript object.
明確介面實作私用方法 ISfcDroppable. . :: . .ScriptDrop Drops an ISfcScript object.

上層

備註

The Managed instance object represents an instance of SQL Server that is included in the group of computers managed by SQL Server Utility services. Using the ManagedObject object, you can:

  • Determine the agent proxy account that runs scheduled jobs on the instance of SQL Server.

  • Determine the cache directory where temporary files are stored during a deployment.

  • Determine the management state of the instance of SQL Server.

  • Stop managing the instance of SQL Server and remove it from the SQL Server Utility.

執行緒安全性

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