SfcMetadataRelation.Resolve Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Resolve(Object) |
Helper method to resolve references If the metadata relation is a reference relationship, it will use the reference attribute's resolver to return the target instances. If the metadata relation is a simple property value, it will return the value itself. |
Resolve<T,S>(S) |
Helper method to resolve a single-target reference. It returns a strongly-typed instance. |
Resolve(Object)
Helper method to resolve references If the metadata relation is a reference relationship, it will use the reference attribute's resolver to return the target instances. If the metadata relation is a simple property value, it will return the value itself.
public object Resolve (object instance);
member this.Resolve : obj -> obj
Public Function Resolve (instance As Object) As Object
Parameters
- instance
- Object
Returns
The target value.
Applies to
Resolve<T,S>(S)
Helper method to resolve a single-target reference. It returns a strongly-typed instance.
public T Resolve<T,S> (S instance);
member this.Resolve : 'S -> 'T
Public Function Resolve(Of T, S) (instance As S) As T
Type Parameters
- T
The type of the target instance.
- S
The type of the source instance.
Parameters
- instance
- S
The source instance to resolve for.
Returns
The target instance.