C# 클래스 Microsoft.Scripting.ComInterop.ComRuntimeHelpers

파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
CreateComEvent ( object rcw, System.Guid sourceIid, int dispid ) : BoundDispEvent
CreateDispCallable ( IDispatchComObject dispatch, ComMethodDesc method ) : DispCallable

비공개 메소드들

메소드 설명
CheckIfMissingTypeInfoIsExpected ( int hresult, bool throwIfMissingExpectedTypeInfo ) : void

This method should be called when typeinfo is not available for an object. The function will check if the typeinfo is expected to be missing. This can include error cases where the same error is guaranteed to happen all the time, on all machines, under all circumstances. In such cases, we just have to operate without the typeinfo. However, if accessing the typeinfo is failing in a transient way, we might want to throw an exception so that we will eagerly predictably indicate the problem.

CheckThrowException ( int hresult, ExcepInfo &excepInfo, uint argErr, string message ) : void
GetITypeInfoFromIDispatch ( IDispatch dispatch, bool throwIfMissingExpectedTypeInfo ) : System.Runtime.InteropServices.ComTypes.ITypeInfo

Look for typeinfo using IDispatch.GetTypeInfo

GetInfoFromType ( System.Runtime.InteropServices.ComTypes typeInfo, string &name, string &documentation ) : void
GetNameOfLib ( System.Runtime.InteropServices.ComTypes typeLib ) : string
GetNameOfMethod ( System.Runtime.InteropServices.ComTypes typeInfo, int memid ) : string
GetNameOfType ( System.Runtime.InteropServices.ComTypes typeInfo ) : string
GetTypeAttrForTypeInfo ( System.Runtime.InteropServices.ComTypes typeInfo ) : TYPEATTR
GetTypeAttrForTypeLib ( System.Runtime.InteropServices.ComTypes typeLib ) : TYPELIBATTR

메소드 상세

CreateComEvent() 공개 정적인 메소드

public static CreateComEvent ( object rcw, System.Guid sourceIid, int dispid ) : BoundDispEvent
rcw object
sourceIid System.Guid
dispid int
리턴 BoundDispEvent

CreateDispCallable() 공개 정적인 메소드

public static CreateDispCallable ( IDispatchComObject dispatch, ComMethodDesc method ) : DispCallable
dispatch IDispatchComObject
method ComMethodDesc
리턴 DispCallable