다음을 통해 공유


ServerAlias 클래스

The ServerAlias class represents an alias for a server connection on the Windows Management Instrumentation (WMI) installation.

상속 계층

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
      Microsoft.SqlServer.Management.Smo.Wmi.ServerAlias

네임스페이스:  Microsoft.SqlServer.Management.Smo.Wmi
어셈블리:  Microsoft.SqlServer.SqlWmiManagement(Microsoft.SqlServer.SqlWmiManagement.dll)

구문

‘선언
Public NotInheritable Class ServerAlias _
    Inherits WmiSmoObject _
    Implements ICreatable, IDroppable
‘사용 방법
Dim instance As ServerAlias
public sealed class ServerAlias : WmiSmoObject, 
    ICreatable, IDroppable
public ref class ServerAlias sealed : public WmiSmoObject, 
    ICreatable, IDroppable
[<SealedAttribute>]
type ServerAlias =  
    class 
        inherit WmiSmoObject 
        interface ICreatable 
        interface IDroppable 
    end
public final class ServerAlias extends WmiSmoObject implements ICreatable, IDroppable

ServerAlias 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 ServerAlias() Initializes a new instance of the ServerAlias class.
공용 메서드 ServerAlias(ManagedComputer, String) Initializes a new instance of the ServerAlias class on the specified WMI installation and with the specified name.

맨 위로 이동

속성

  이름 설명
공용 속성 ConnectionString Gets or sets the connection string that the alias uses to connect to the server.
공용 속성 Name Gets or sets the name of the referenced Windows Management Instrumentation (WMI) object. (WmiSmoObject에서 상속됨)
공용 속성 Parent Gets or sets the ManagedComputer object that is the parent of the ServerAlias object.
공용 속성 Properties Represents a collection of Property objects. Each Property object represents a property defined on the Windows Management Instrumentation (WMI) object. (WmiSmoObject에서 상속됨)
공용 속성 ProtocolName Gets or sets the name of the protocol used by the server connection alias.
공용 속성 ServerName Gets or sets the name of the instance of SQL Server to which the server alias connects.
공용 속성 State Gets the state of the referenced object. (SmoObjectBase에서 상속됨)
공용 속성 Urn Gets the Uniform Resource Name (URN) address that represents the Windows Management Instrumentation (WMI) object. (WmiSmoObject에서 상속됨)
공용 속성 UserData Gets or sets user-defined data associated with the referenced object. (SmoObjectBase에서 상속됨)

맨 위로 이동

메서드

  이름 설명
공용 메서드 Create Creates a server connection alias on the WMI installation as defined by the ServerAlias object.
공용 메서드 Drop Removes the server connection alias from the WMI installation.
공용 메서드 Equals (Object에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 Initialize Initializes the referenced object. (WmiSmoObject에서 상속됨)
보호된 메서드 IsObjectInitialized Specifies whether the referenced object is initialized. (WmiSmoObject에서 상속됨)
공용 메서드 Refresh Refreshes the referenced object and its properties. (WmiSmoObject에서 상속됨)
보호된 메서드 SetName Sets the name of the referenced object. (WmiSmoObject에서 상속됨)
보호된 메서드 SetParentImpl Sets the parent of the referenced object. (WmiSmoObject에서 상속됨)
공용 메서드 ToString (Object에서 상속됨)
공용 메서드 Validate Validates the state of an object. (SmoObjectBase에서 상속됨)

맨 위로 이동

주의

A server connection alias is required when:

  • The client is connecting to an instance of Microsoft SQL Server over a network transport that is not the default network transport.

  • The instance of SQL Server to which the client is connected listens on an alternate named pipe.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

WMI 공급자를 사용하여 서비스 및 네트워크 설정 관리

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Smo.Wmi 네임스페이스

관련 자료

WMI and SQL Server

SQL Server 데이터베이스 엔진에 연결