IVsSQLCLRReferencesUpdateCallback.UpdateResult 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
报告程序集更新的结果。
public:
int UpdateResult(System::String ^ szAssembly, System::UInt32 dwPermisionLevel, int hrUpdateResult, Microsoft::VisualStudio::Shell::Interop::IErrorInfo ^ pErrorInfo, System::UInt32 updateAction);
public:
int UpdateResult(Platform::String ^ szAssembly, unsigned int dwPermisionLevel, int hrUpdateResult, Microsoft::VisualStudio::Shell::Interop::IErrorInfo ^ pErrorInfo, unsigned int updateAction);
int UpdateResult(std::wstring const & szAssembly, unsigned int dwPermisionLevel, int hrUpdateResult, Microsoft::VisualStudio::Shell::Interop::IErrorInfo const & pErrorInfo, unsigned int updateAction);
public int UpdateResult (string szAssembly, uint dwPermisionLevel, int hrUpdateResult, Microsoft.VisualStudio.Shell.Interop.IErrorInfo pErrorInfo, uint updateAction);
abstract member UpdateResult : string * uint32 * int * Microsoft.VisualStudio.Shell.Interop.IErrorInfo * uint32 -> int
Public Function UpdateResult (szAssembly As String, dwPermisionLevel As UInteger, hrUpdateResult As Integer, pErrorInfo As IErrorInfo, updateAction As UInteger) As Integer
参数
- szAssembly
- String
中包含更新的程序集名称的字符串。
- dwPermisionLevel
- UInt32
中包含 __SQL_ASSEMBLY_PERMISSION_SET 枚举中的值的整数。 指示程序集的权限级别: SQLAP_SAFE (1) 、SQLAP_EXTERNAL (2) 或 SQLAP_UNRESTRICTED (3) 。
- hrUpdateResult
- Int32
中更新操作返回的 HRESULT。
- pErrorInfo
- IErrorInfo
中指向 IErrorInfo 报告任何错误信息的接口的指针。
- updateAction
- UInt32
中Integer-执行的操作。 _SqlReferenceUpdateAction 枚举中的一个值。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。