ConnectionSettings.ThrowIfPropertyNotSet 메서드 (String, String)

Throws an exception if the specified connection property is null or empty.

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)


Protected Function ThrowIfPropertyNotSet ( _
    propertyName As String, _
    str As String _
) As String
‘사용 방법
Dim propertyName As String 
Dim str As String 
Dim returnValue As String 

returnValue = Me.ThrowIfPropertyNotSet(propertyName, _
protected string ThrowIfPropertyNotSet(
    string propertyName,
    string str
String^ ThrowIfPropertyNotSet(
    String^ propertyName, 
    String^ str
member ThrowIfPropertyNotSet : 
        propertyName:string * 
        str:string -> string
protected function ThrowIfPropertyNotSet(
    propertyName : String, 
    str : String
) : String

매개 변수

  • propertyName
    유형: System.String
    A string that specifies the name of the connection property, such as "Login".

반환 값

유형: System.String
If the string is null or empty, this method throws a PropertyNotSetException. Otherwise, this method returns the str parameter value.

참고 항목


ConnectionSettings 클래스

ThrowIfPropertyNotSet 오버로드

Microsoft.SqlServer.Management.Common 네임스페이스