RuntimeHelpers.TryCode Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- userData
- Object
Data to pass to the delegate.
- Attributes
Remarks
Use the RuntimeHelpers.TryCode delegate with the ExecuteCodeWithGuaranteedCleanup method.
Extension Methods
GetMethodInfo(Delegate) |
Gets an object that represents the method represented by the specified delegate. |
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.