ReflectionHelper.GetAttributeValue<TAttribute, TResult> Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Shared Function GetAttributeValue(Of TAttribute As Attribute, TResult) ( _
    source As ICustomAttributeProvider, _
    valueGetter As Func(Of TAttribute, TResult) _
) As TResult
'Usage
Dim source As ICustomAttributeProvider 
Dim valueGetter As Func(Of TAttribute, TResult)
Dim returnValue As TResult

returnValue = ReflectionHelper.GetAttributeValue(source, _
    valueGetter)
public static TResult GetAttributeValue<TAttribute, TResult>(
    ICustomAttributeProvider source,
    Func<TAttribute, TResult> valueGetter
)
where TAttribute : Attribute
public:
generic<typename TAttribute, typename TResult>
where TAttribute : Attribute 
static TResult GetAttributeValue(
    ICustomAttributeProvider^ source, 
    Func<TAttribute, TResult>^ valueGetter
)
static member GetAttributeValue : 
        source:ICustomAttributeProvider * 
        valueGetter:Func<'TAttribute, 'TResult> -> 'TResult  when 'TAttribute : Attribute
JScript does not support generic types and methods.

Type Parameters

  • TAttribute
  • TResult

Parameters

Return Value

Type: TResult
Returns [{0}].

See Also

Reference

ReflectionHelper Class

Microsoft.AspNet.SignalR.Hubs Namespace