 | FeatureCollectionExtensionsSetTFeature Method |
[This is preliminary documentation and is subject to change.]
Puts the specified feature instance into the feature collection.
Namespace:
JsonRpc.Server
Assembly:
JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntaxpublic static void Set<TFeature>(
this IFeatureCollection featureCollection,
TFeature instance
)
<ExtensionAttribute>
Public Shared Sub Set(Of TFeature) (
featureCollection As IFeatureCollection,
instance As TFeature
)
Dim featureCollection As IFeatureCollection
Dim instance As TFeature
featureCollection.Set(instance)
public:
[ExtensionAttribute]
generic<typename TFeature>
static void Set(
IFeatureCollection^ featureCollection,
TFeature instance
)
[<ExtensionAttribute>]
static member Set :
featureCollection : IFeatureCollection *
instance : 'TFeature -> unit
Parameters
- featureCollection
- Type: JsonRpc.ServerIFeatureCollection
The target feature collection. - instance
- Type: TFeature
Feature instance, or null to remove an existing feature.
Type Parameters
- TFeature
- Feature type. Usually an interface type.
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