将 DataCommandType 的枚举值转换为其在 CommandType 枚举的对应值。
命名空间: Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Protected Shared Function GetCommandType ( _
commandType As DataCommandType _
) As CommandType
protected static CommandType GetCommandType(
DataCommandType commandType
)
protected:
static CommandType GetCommandType(
DataCommandType commandType
)
static member GetCommandType :
commandType:DataCommandType -> CommandType
protected static function GetCommandType(
commandType : DataCommandType
) : CommandType
参数
- commandType
类型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType
命令类型转换数据。
返回值
类型:System.Data.CommandType
一个 CommandType 枚举值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。