ExtensionMethods.Atom Method (ODataResourceCollectionInfo)
Determines an extension method to get the AtomResourceCollectionMetadata for an annotatable (resource) collection.
Namespace: Microsoft.Data.OData.Atom
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Atom ( _
collection As ODataResourceCollectionInfo _
) As AtomResourceCollectionMetadata
'Usage
Dim collection As ODataResourceCollectionInfo
Dim returnValue As AtomResourceCollectionMetadata
returnValue = collection.Atom()
public static AtomResourceCollectionMetadata Atom(
this ODataResourceCollectionInfo collection
)
[ExtensionAttribute]
public:
static AtomResourceCollectionMetadata^ Atom(
ODataResourceCollectionInfo^ collection
)
static member Atom :
collection:ODataResourceCollectionInfo -> AtomResourceCollectionMetadata
public static function Atom(
collection : ODataResourceCollectionInfo
) : AtomResourceCollectionMetadata
Parameters
- collection
Type: Microsoft.Data.OData.ODataResourceCollectionInfo
The (resource) collection to get the annotation from.
Return Value
Type: Microsoft.Data.OData.Atom.AtomResourceCollectionMetadata
An AtomResourceCollectionMetadata instance or null if no annotation of that type exists.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ODataResourceCollectionInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).