Share via


WMIConn.Namespace 속성

Gets or sets the WMI namespace.

네임스페이스:  Microsoft.SqlServer.Dts.ManagedConnections
어셈블리:  Microsoft.SqlServer.ManagedConnections(Microsoft.SqlServer.ManagedConnections.dll)

구문

‘선언
Public Property Namespace As String 
    Get 
    Set
‘사용 방법
Dim instance As WMIConn 
Dim value As String 

value = instance.Namespace

instance.Namespace = value
public string Namespace { get; set; }
public:
property String^ Namespace {
    String^ get ();
    void set (String^ value);
}
member Namespace : string with get, set
function get Namespace () : String 
function set Namespace (value : String)

속성 값

유형: System.String
A String that contains the WMI namespace.

The following code example adds a WMI connection to a package, and sets the ServerName, Namespace, and UseWindowsAuth properties.

ConnectionManager WmiConn = pkg.Connections.Add("WMI");
DtsProperty prop = WmiConn.Properties["ServerName"];
prop.SetValue(WmiConn, @"\\localhost");
WmiConn.Properties["Namespace"].SetValue(WmiConn, @"\root\myfolder");
WmiConn.Properties["UseWindowsAuth"].SetValue(WmiConn, true);
Dim WmiConn As ConnectionManager =  pkg.Connections.Add("WMI") 
Dim prop As DtsProperty =  WmiConn.Properties("ServerName") 
prop.SetValue(WmiConn, "\\localhost")
WmiConn.Properties("Namespace").SetValue(WmiConn, "\root\myfolder")
WmiConn.Properties("UseWindowsAuth").SetValue(WmiConn, True)

참고 항목

참조

WMIConn 클래스

Microsoft.SqlServer.Dts.ManagedConnections 네임스페이스