WMIConn Members

Contains the methods and properties used by WMI connections.

The following tables list the members exposed by the WMIConn type.

Public Constructors

  名称 Description
WMIConn Overloaded. Initializes a new instance of the WMIConn class.

顶部

Public Properties

  名称 Description
ms211082.pubproperty(zh-cn,SQL.90).gifms211082.static(zh-cn,SQL.90).gif ConnectionDescription Gets a description of the connection manager for the WMI connection.
ms211082.pubproperty(zh-cn,SQL.90).gifms211082.static(zh-cn,SQL.90).gif ConnectionDisplayName Returns the localized display name of the connection.
ms211082.pubproperty(zh-cn,SQL.90).gif ConnectionString Overridden. Gets or sets the connection string for the WMI connection.
ms211082.pubproperty(zh-cn,SQL.90).gif Namespace Gets or sets the WMI namespace.
ms211082.pubproperty(zh-cn,SQL.90).gif Password Sets the password for the connection, if you do not use Windows Authentication.
ms211082.pubproperty(zh-cn,SQL.90).gif ProtectionLevel  Gets or sets a value, by using the DTSProtectionLevel enumeration, that enforces how the connection controls sensitive information. (inherited from ConnectionManagerBase)
ms211082.pubproperty(zh-cn,SQL.90).gif ServerName Gets or sets the name of the server to connect to as a WMI connection.
ms211082.pubproperty(zh-cn,SQL.90).gif SupportsDTCTransactions  Returns a Boolean that indicates if the connection supports Microsoft Distributed Transaction Coordinator (MS DTC) transactions. (inherited from ConnectionManagerBase)
ms211082.pubproperty(zh-cn,SQL.90).gif UserName Gets or sets the user name for the connection, if you do not use Windows Authentication.
ms211082.pubproperty(zh-cn,SQL.90).gif UseWindowsAuth Gets or sets a Boolean that indicates if Windows Authentication is used for the connection.
ms211082.pubproperty(zh-cn,SQL.90).gif Version  Returns the version of this connection manager. (inherited from ConnectionManagerBase)

顶部

Public Methods

(see also Protected Methods )

  名称 Description
ms211082.pubmethod(zh-cn,SQL.90).gif AcquireConnection Overridden. Establishes the WMI connection and returns a connection object.
ms211082.pubmethod(zh-cn,SQL.90).gif CanUpdate  (inherited from ConnectionManagerBase )
ms211082.pubmethod(zh-cn,SQL.90).gif Equals  Overloaded. (inherited from DtsObject )
ms211082.pubmethod(zh-cn,SQL.90).gif GetHashCode  Returns the hash code for this instance. (inherited from DtsObject)
ms211082.pubmethod(zh-cn,SQL.90).gif GetType  (inherited from Object )
ms211082.pubmethod(zh-cn,SQL.90).gif LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
ms211082.pubmethod(zh-cn,SQL.90).gifms211082.static(zh-cn,SQL.90).gif op_Equality  (inherited from DtsObject )
ms211082.pubmethod(zh-cn,SQL.90).gifms211082.static(zh-cn,SQL.90).gif op_Inequality  (inherited from DtsObject )
ms211082.pubmethod(zh-cn,SQL.90).gifms211082.static(zh-cn,SQL.90).gif ReferenceEquals  (inherited from Object )
ms211082.pubmethod(zh-cn,SQL.90).gif ReleaseConnection  (inherited from ConnectionManagerBase )
ms211082.pubmethod(zh-cn,SQL.90).gif SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
ms211082.pubmethod(zh-cn,SQL.90).gif SetQualifier  (inherited from ConnectionManagerBase )
ms211082.pubmethod(zh-cn,SQL.90).gif ToString  (inherited from Object )
ms211082.pubmethod(zh-cn,SQL.90).gif Update  (inherited from ConnectionManagerBase )
ms211082.pubmethod(zh-cn,SQL.90).gif Validate  (inherited from ConnectionManagerBase )

顶部

Protected Methods

  名称 Description
ms211082.protmethod(zh-cn,SQL.90).gif Finalize  (inherited from Object )
ms211082.protmethod(zh-cn,SQL.90).gif MemberwiseClone  (inherited from Object )

顶部

请参阅

参考

WMIConn Class
Microsoft.SqlServer.Dts.ManagedConnections Namespace