RuntimeHelpers.TryCode Delegar
Definição
Representa um delegado a ser codificado que deve ser executado em um bloco try.Represents a delegate to code that should be run in a try block.
public: delegate void RuntimeHelpers::TryCode(System::Object ^ userData);
public delegate void RuntimeHelpers.TryCode(object? userData);
[System.Security.SecurityCritical]
public delegate void RuntimeHelpers.TryCode(object userData);
public delegate void RuntimeHelpers.TryCode(object userData);
type RuntimeHelpers.TryCode = delegate of obj -> unit
[<System.Security.SecurityCritical>]
type RuntimeHelpers.TryCode = delegate of obj -> unit
Public Delegate Sub RuntimeHelpers.TryCode(userData As Object)
Parâmetros
- userData
- Object
Dados a serem passados para o delegado.Data to pass to the delegate.
- Atributos
Comentários
Use o RuntimeHelpers.TryCode delegado com o ExecuteCodeWithGuaranteedCleanup método.Use the RuntimeHelpers.TryCode delegate with the ExecuteCodeWithGuaranteedCleanup method.
Métodos de Extensão
| GetMethodInfo(Delegate) |
Obtém um objeto que representa o método representado pelo delegado especificado.Gets an object that represents the method represented by the specified delegate. |