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 型別公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。