次の方法で共有


IErrorInfo.GetSource(String) Method

Definition

Returns the programmatic identifier (ProgID) for the class or application returning the error.

public:
 int GetSource([Runtime::InteropServices::Out] System::String ^ % pBstrSource);
int GetSource([Runtime::InteropServices::Out] std::wstring const & & pBstrSource);
public int GetSource (out string pBstrSource);
abstract member GetSource : string -> int
Public Function GetSource (ByRef pBstrSource As String) As Integer

Parameters

pBstrSource
String

[out] Pointer to a string containing the programmatic identifier.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to