CollectionNotAvailableException 建構函式 (String, ServerVersion)
Initializes a new instance of the CollectionNotAvailableException class with the specified collection and the version of the instance of Microsoft SQL Server.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
colname As String, _
serverVersion As ServerVersion _
)
'用途
Dim colname As String
Dim serverVersion As ServerVersion
Dim instance As New CollectionNotAvailableException(colname, _
serverVersion)
public CollectionNotAvailableException(
string colname,
ServerVersion serverVersion
)
public:
CollectionNotAvailableException(
String^ colname,
ServerVersion^ serverVersion
)
new :
colname:string *
serverVersion:ServerVersion -> CollectionNotAvailableException
public function CollectionNotAvailableException(
colname : String,
serverVersion : ServerVersion
)
參數
- colname
型別:System.String
A String value that specifies the name of the collection that is not available.
- serverVersion
型別:Microsoft.SqlServer.Management.Common.ServerVersion
A ServerVersion object value that specifies the version of the instance of SQL Server that raised the exception.
範例
請參閱
參考
CollectionNotAvailableException 類別