 | FeatureCollectionExtensionsGetTFeature Method |
[This is preliminary documentation and is subject to change.]
Gets the feature of the specified type.
Namespace:
JsonRpc.Server
Assembly:
JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntaxpublic static TFeature Get<TFeature>(
this IFeatureCollection featureCollection
)
<ExtensionAttribute>
Public Shared Function Get(Of TFeature) (
featureCollection As IFeatureCollection
) As TFeature
Dim featureCollection As IFeatureCollection
Dim returnValue As TFeature
returnValue = featureCollection.Get()
public:
[ExtensionAttribute]
generic<typename TFeature>
static TFeature Get(
IFeatureCollection^ featureCollection
)
[<ExtensionAttribute>]
static member Get :
featureCollection : IFeatureCollection -> 'TFeature
Parameters
- featureCollection
- Type: JsonRpc.ServerIFeatureCollection
The target feature collection.
Type Parameters
- TFeature
- Feature type. Usually an interface type.
Return Value
Type:
TFeatureThe requested feature instance, or
null if not applicable.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IFeatureCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also