Sdílet prostřednictvím


IGuardedOperations.CallExtensionPoint Method

Definition

Overloads

CallExtensionPoint(Action)

Makes a guarded call to an extension point.

CallExtensionPoint(Object, Action)

Makes a guarded call to an extension point.

CallExtensionPoint(Object, Action, Predicate<Exception>)

Makes a guarded call to an extension point.

CallExtensionPoint<T>(Func<T>, T)

Makes a guarded call to an extension point.

CallExtensionPoint<T>(Object, Func<T>, T)

Makes a guarded call to an extension point.

CallExtensionPoint(Action)

Makes a guarded call to an extension point.

public:
 void CallExtensionPoint(Action ^ call);
public void CallExtensionPoint (Action call);
abstract member CallExtensionPoint : Action -> unit
Public Sub CallExtensionPoint (call As Action)

Parameters

call
Action

Delegate that calls the extension point.

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to

CallExtensionPoint(Object, Action)

Makes a guarded call to an extension point.

public:
 void CallExtensionPoint(System::Object ^ errorSource, Action ^ call);
public void CallExtensionPoint (object errorSource, Action call);
abstract member CallExtensionPoint : obj * Action -> unit
Public Sub CallExtensionPoint (errorSource As Object, call As Action)

Parameters

errorSource
Object

Reference to the extension object or event handler that may throw an exception. Used for tracking performance and errors.

call
Action

Delegate that calls the extension point.

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to

CallExtensionPoint(Object, Action, Predicate<Exception>)

Makes a guarded call to an extension point.

public:
 void CallExtensionPoint(System::Object ^ errorSource, Action ^ call, Predicate<Exception ^> ^ exceptionGuardFilter);
public void CallExtensionPoint (object errorSource, Action call, Predicate<Exception> exceptionGuardFilter);
abstract member CallExtensionPoint : obj * Action * Predicate<Exception> -> unit
Public Sub CallExtensionPoint (errorSource As Object, call As Action, exceptionGuardFilter As Predicate(Of Exception))

Parameters

errorSource
Object

Reference to the extension object or event handler that may throw an exception. Used for tracking performance and errors.

call
Action

Delegate that calls the extension point.

exceptionGuardFilter
Predicate<Exception>

Determines which exceptions should be guarded against. An exception gets handled only if exceptionGuardFilter returns true.

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to

CallExtensionPoint<T>(Func<T>, T)

Makes a guarded call to an extension point.

public:
generic <typename T>
 T CallExtensionPoint(Func<T> ^ call, T valueOnThrow);
public T CallExtensionPoint<T> (Func<T> call, T valueOnThrow);
abstract member CallExtensionPoint : Func<'T> * 'T -> 'T
Public Function CallExtensionPoint(Of T) (call As Func(Of T), valueOnThrow As T) As T

Type Parameters

T

Parameters

call
Func<T>

Delegate that calls the extension point.

valueOnThrow
T

The value returned if the delegate call failed.

Returns

T

The result of the call or valueOnThrow.

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to

CallExtensionPoint<T>(Object, Func<T>, T)

Makes a guarded call to an extension point.

public:
generic <typename T>
 T CallExtensionPoint(System::Object ^ errorSource, Func<T> ^ call, T valueOnThrow);
public T CallExtensionPoint<T> (object errorSource, Func<T> call, T valueOnThrow);
abstract member CallExtensionPoint : obj * Func<'T> * 'T -> 'T
Public Function CallExtensionPoint(Of T) (errorSource As Object, call As Func(Of T), valueOnThrow As T) As T

Type Parameters

T

Parameters

errorSource
Object

Reference to the extension object or event handler that may throw an exception. Used for tracking performance and errors.

call
Func<T>

Delegate that calls the extension point.

valueOnThrow
T

The value returned if the delegate call failed.

Returns

T

The result of the call or valueOnThrow.

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to