ExtensibilityMetadataPropertySelector<T> Constructors
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.
Overloads
ExtensibilityMetadataPropertySelector<T>(ExtensibilityDiagnosticsProperty, Func<T,String>) |
Initializes a new instance of the ExtensibilityMetadataPropertySelector<T> class. |
ExtensibilityMetadataPropertySelector<T>(ExtensibilityDiagnosticsProperty, Func<T,CancellationToken,Task<String>>) |
Initializes a new instance of the ExtensibilityMetadataPropertySelector<T> class. |
ExtensibilityMetadataPropertySelector<T>(ExtensibilityDiagnosticsProperty, Func<T,String>)
Initializes a new instance of the ExtensibilityMetadataPropertySelector<T> class.
public ExtensibilityMetadataPropertySelector (Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsProperty property, Func<T,string?> selector);
new Microsoft.VisualStudio.Shell.Internal.ExtensibilityMetadataPropertySelector<'T> : Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsProperty * Func<'T, string> -> Microsoft.VisualStudio.Shell.Internal.ExtensibilityMetadataPropertySelector<'T>
Public Sub New (property As ExtensibilityDiagnosticsProperty, selector As Func(Of T, String))
Parameters
- property
- ExtensibilityDiagnosticsProperty
The diagnostics property that this selector is for.
A delegate used to get the value of a property from an object. If the delegate returns null, the value of NullValue wil be used instead.
Applies to
ExtensibilityMetadataPropertySelector<T>(ExtensibilityDiagnosticsProperty, Func<T,CancellationToken,Task<String>>)
Initializes a new instance of the ExtensibilityMetadataPropertySelector<T> class.
public ExtensibilityMetadataPropertySelector (Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsProperty property, Func<T,System.Threading.CancellationToken,System.Threading.Tasks.Task<string?>> selectorAsync);
new Microsoft.VisualStudio.Shell.Internal.ExtensibilityMetadataPropertySelector<'T> : Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsProperty * Func<'T, System.Threading.CancellationToken, System.Threading.Tasks.Task<string>> -> Microsoft.VisualStudio.Shell.Internal.ExtensibilityMetadataPropertySelector<'T>
Public Sub New (property As ExtensibilityDiagnosticsProperty, selectorAsync As Func(Of T, CancellationToken, Task(Of String)))
Parameters
- property
- ExtensibilityDiagnosticsProperty
The diagnostics property that this selector is for.
- selectorAsync
- Func<T,CancellationToken,Task<String>>
A delegate used to get the value of a property from an object. If the delegate returns null, the value of NullValue wil be used instead.