NavigationSourceLinkBuilderAnnotation Constructor
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
NavigationSourceLinkBuilderAnnotation() | Initializes a new instance of the NavigationSourceLinkBuilderAnnotation class. |
|
NavigationSourceLinkBuilderAnnotation(IEdmNavigationSource, IEdmModel) | Initializes a new instance of the NavigationSourceLinkBuilderAnnotation class. |
|
NavigationSourceLinkBuilderAnnotation(IEdmNavigationSource, SelfLinkBuilder<Uri>, SelfLinkBuilder<Uri>, SelfLinkBuilder<Uri>) | Constructs an instance of an NavigationSourceLinkBuilderAnnotation class. |
|
NavigationSourceLinkBuilderAnnotation(NavigationSourceConfiguration) | Constructs an instance of an NavigationSourceLinkBuilderAnnotation from an NavigationSourceConfiguration. |
See Also
NavigationSourceLinkBuilderAnnotation Class
System.Web.OData.Builder Namespace
Return to top
NavigationSourceLinkBuilderAnnotation Constructor ()
Initializes a new instance of the NavigationSourceLinkBuilderAnnotation class.
Syntax
public NavigationSourceLinkBuilderAnnotation()
public:
NavigationSourceLinkBuilderAnnotation()
new : unit -> NavigationSourceLinkBuilderAnnotation
Public Sub New
Remarks
The default constructor is intended for use by unit testing only.
Return to top
NavigationSourceLinkBuilderAnnotation Constructor (IEdmNavigationSource, IEdmModel)
Initializes a new instance of the NavigationSourceLinkBuilderAnnotation class.
Syntax
public NavigationSourceLinkBuilderAnnotation(
IEdmNavigationSource navigationSource,
IEdmModel model
)
public:
NavigationSourceLinkBuilderAnnotation(
IEdmNavigationSource^ navigationSource,
IEdmModel^ model
)
new :
navigationSource:IEdmNavigationSource *
model:IEdmModel -> NavigationSourceLinkBuilderAnnotation
Public Sub New (
navigationSource As IEdmNavigationSource,
model As IEdmModel
)
Parameters
navigationSource
Type: Microsoft.OData.Edm.IEdmNavigationSourceThe navigation source for which the link builder is being constructed.
model
Type: Microsoft.OData.Edm.IEdmModelThe EDM model that this navigation source belongs to.
Remarks
This constructor creates a link builder that generates URL's that follow OData conventions for the given navigation source.
Return to top
NavigationSourceLinkBuilderAnnotation Constructor (IEdmNavigationSource, SelfLinkBuilder<Uri>, SelfLinkBuilder<Uri>, SelfLinkBuilder<Uri>)
Constructs an instance of an NavigationSourceLinkBuilderAnnotation class.
Syntax
public NavigationSourceLinkBuilderAnnotation(
IEdmNavigationSource navigationSource,
SelfLinkBuilder<Uri> idLinkBuilder,
SelfLinkBuilder<Uri> editLinkBuilder,
SelfLinkBuilder<Uri> readLinkBuilder
)
public:
NavigationSourceLinkBuilderAnnotation(
IEdmNavigationSource^ navigationSource,
SelfLinkBuilder<Uri^>^ idLinkBuilder,
SelfLinkBuilder<Uri^>^ editLinkBuilder,
SelfLinkBuilder<Uri^>^ readLinkBuilder
)
new :
navigationSource:IEdmNavigationSource *
idLinkBuilder:SelfLinkBuilder<Uri> *
editLinkBuilder:SelfLinkBuilder<Uri> *
readLinkBuilder:SelfLinkBuilder<Uri> -> NavigationSourceLinkBuilderAnnotation
Public Sub New (
navigationSource As IEdmNavigationSource,
idLinkBuilder As SelfLinkBuilder(Of Uri),
editLinkBuilder As SelfLinkBuilder(Of Uri),
readLinkBuilder As SelfLinkBuilder(Of Uri)
)
Parameters
navigationSource
Type: Microsoft.OData.Edm.IEdmNavigationSourceThe navigation source for which the link builder is being constructed.
idLinkBuilder
Type: System.Web.OData.Builder.SelfLinkBuilder<Uri>The ID link builder which is used to build the ID link.
editLinkBuilder
Type: System.Web.OData.Builder.SelfLinkBuilder<Uri>The Edit link builder which is used to build the Edit link.
readLinkBuilder
Type: System.Web.OData.Builder.SelfLinkBuilder<Uri>The Read link builder which is used to build the Read link.
Return to top
NavigationSourceLinkBuilderAnnotation Constructor (NavigationSourceConfiguration)
Constructs an instance of an NavigationSourceLinkBuilderAnnotation from an NavigationSourceConfiguration.
Syntax
public NavigationSourceLinkBuilderAnnotation(
NavigationSourceConfiguration navigationSource
)
public:
NavigationSourceLinkBuilderAnnotation(
NavigationSourceConfiguration^ navigationSource
)
new :
navigationSource:NavigationSourceConfiguration -> NavigationSourceLinkBuilderAnnotation
Public Sub New (
navigationSource As NavigationSourceConfiguration
)
Return to top