SfcReferenceAttribute Class
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.
Important
This API is not CLS-compliant.
Attribute for (soft) references to a single target.
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=true, Inherited=true)]
[System.CLSCompliant(false)]
public class SfcReferenceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=true, Inherited=true)>]
[<System.CLSCompliant(false)>]
type SfcReferenceAttribute = class
inherit Attribute
Public Class SfcReferenceAttribute
Inherits Attribute
- Inheritance
-
SfcReferenceAttribute
- Attributes
Constructors
SfcReferenceAttribute(Type, String, String[]) |
Reference will be resolved with values of passed in property names |
SfcReferenceAttribute(Type, String[], String, String[]) |
Reference will be resolved with values of passed in property names |
SfcReferenceAttribute(Type, String[], Type, String, String[]) |
Reference will be resolved by calling a delegate |
SfcReferenceAttribute(Type, String[]) |
Reference will be resolved by creating an instance of the given resolver type with optional keys and parameters. |
SfcReferenceAttribute(Type, Type, String, String[]) |
Reference will be resolved by calling a delegate |
SfcReferenceAttribute(Type) |
Reference will be resolved by creating an instance of the given resolver type. |
Properties
Arguments |
Arguments for the urnTemplate. |
InstanceResolver |
Custom resolver interface. |
Keys |
The keys that participate in the reference. |
Resolver |
Custom resolver method. |
Type |
The type of the reference |
UrnTemplate |
Urn template that takes the form of a String.Format string. Example "Server/Login[@Name = '{0}']". |
Methods
GetUrn(Object) |
Returns the Urn reference. Returns null if the attribute does not have a pathexpression defined. |
Resolve(Object) |
Resolve a single target object from the given source object. If a custom resolver interface is defined, it uses that. Otherwise if a custom resolver delegate helper is defined it uses that. In the absence of custom resolvers, it evaluates the given Urn path expression template with arguments. |
Resolve<T,S>(S) |
Resolve a strongly-typed single target object from the given source object. If a custom resolver interface is defined, it uses that. Otherwise if a custom resolver delegate helper is defined it uses that. In the absence of custom resolvers, it evaluates the given Urn path expression template with arguments. |