IdmResourceGetAttrT Method (String, T) |
Get the complex object that is backing a single-valued reference attribute in IdmNet.
Namespace: IdmNet.ModelsAssembly: IdmNet (in IdmNet.dll) Version: 1.3.0.0 (1.3.0)
Syntax public T GetAttr<T>(
string attrName,
T backingField
)
where T : new(), IdmResource
Public Function GetAttr(Of T As {New, IdmResource}) (
attrName As String,
backingField As T
) As T
public:
generic<typename T>
where T : gcnew(), IdmResource
T GetAttr(
String^ attrName,
T backingField
)
member GetAttr :
attrName : string *
backingField : 'T -> 'T when 'T : new() and IdmResource
Parameters
- attrName
- Type: SystemString
Name of the single-valued attribute to retrieve - backingField
- Type: T
Object that contains the representation for the reference type
Type Parameters
- T
- Complex Object's type, such as "Person" for Creator
Return Value
Type:
TStrongly-typed single value for the Attribute
See Also