ExtensionMethods.Atom Method (ODataWorkspace)
Determines an extension method to get the AtomWorkspaceMetadata for an annotatable workspace.
Namespace: Microsoft.Data.OData.Atom
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Atom ( _
workspace As ODataWorkspace _
) As AtomWorkspaceMetadata
'Usage
Dim workspace As ODataWorkspace
Dim returnValue As AtomWorkspaceMetadata
returnValue = workspace.Atom()
public static AtomWorkspaceMetadata Atom(
this ODataWorkspace workspace
)
[ExtensionAttribute]
public:
static AtomWorkspaceMetadata^ Atom(
ODataWorkspace^ workspace
)
static member Atom :
workspace:ODataWorkspace -> AtomWorkspaceMetadata
public static function Atom(
workspace : ODataWorkspace
) : AtomWorkspaceMetadata
Parameters
- workspace
Type: Microsoft.Data.OData.ODataWorkspace
The workspace to get the annotation from.
Return Value
Type: Microsoft.Data.OData.Atom.AtomWorkspaceMetadata
An AtomWorkspaceMetadata 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 ODataWorkspace. 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).