GetSourceAttribute Method
Retrieves the specified attribute from the specified catalog/data-source/source-info|data-object/data-member in the profile data store.
Namespace: Microsoft.CommerceServer.Interop.Profiles
Assembly: Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin (in Microsoft.CommerceServer.Interop.Profiles.BizDataAdmin.dll)
Syntax
'Declaration
Public Function GetSourceAttribute ( _
ByRef sourcePath As String, _
ByRef attributeName As String, _
ByRef isCustomAttribute As Boolean _
) As Object
'Usage
Dim instance As BusinessDataAdminFreeThreaded
Dim sourcePath As String
Dim attributeName As String
Dim isCustomAttribute As Boolean
Dim returnValue As Object
returnValue = instance.GetSourceAttribute(sourcePath, _
attributeName, isCustomAttribute)
public Object GetSourceAttribute(
ref string sourcePath,
ref string attributeName,
ref bool isCustomAttribute
)
public:
Object^ GetSourceAttribute(
String^% sourcePath,
String^% attributeName,
bool% isCustomAttribute
)
public function GetSourceAttribute(
sourcePath : String,
attributeName : String,
isCustomAttribute : boolean
) : Object
Parameters
- sourcePath
Type: System..::.String%
The path of the catalog to retrieve.
- attributeName
Type: System..::.String%
The name of the attribute to retrieve.
- isCustomAttribute
Type: System..::.Boolean%
true if this is a custom attribute; otherwise false.
Return Value
Type: System..::.Object
The specified attribute from the source.
Exceptions
Exception | Condition |
---|---|
ERR_NOCONNECTION | The profile data store connection is not open. |
ERR_SOURCEPATH_INVALID | Invalid source-path. |
Remarks
The caller can specify whether the attribute is a system-attribute or a custom-attribute. Catalogs don't have custom-attributes.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
BusinessDataAdminFreeThreaded Class