public static T SafePInvoke<T>(
Expression<Func<T>> expr,
bool successValue
)
Public Shared Function SafePInvoke(Of T) (
expr As Expression(Of Func(Of T)),
successValue As Boolean
) As T
Dim expr As Expression(Of Func(Of T))
Dim successValue As Boolean
Dim returnValue As T
returnValue = UtilWin32.SafePInvoke(expr,
successValue)
public:
generic<typename T>
static T SafePInvoke(
Expression<Func<T>^>^ expr,
bool successValue
)
static member SafePInvoke :
expr : Expression<Func<'T>> *
successValue : bool -> 'T
No code example is currently available or this language may not be supported.
[Missing <param name="successValue"/> documentation for "M:DevCase.Win32.UtilWin32.SafePInvoke``1(System.Linq.Expressions.Expression{System.Func{``0}},System.Boolean)"]
No code example is currently available or this language may not be supported.
<DllImport("User32.dll", SetLastError:=True)>
Private Shared Function MessageBeep(ByVal beeptype As UInteger) As Boolean
End Function
Dim expr As Expression(Of Func(Of Boolean)) = Function() MessageBeep(0)
Dim result As Boolean = SafePInvoke(Of Boolean)(expr, successValue:=True)
Console.WriteLine(result)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Win32Exception |