Dijeli putem


GetPropertyAttributes Method (String)

NOTE: This API is now obsolete.

(Obsolete) Use GetProperty and Information instead. Returns a DataSet containing the attributes of the specified property.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
<ObsoleteAttribute("CatalogContext.GetPropertyAttributes should not be used, use CatalogContext.GetProperty() and CatalogProperty.Information instead.")> _
Public Function GetPropertyAttributes ( _
    propertyName As String _
) As DataSet
'Usage
Dim instance As CatalogContext
Dim propertyName As String
Dim returnValue As DataSet

returnValue = instance.GetPropertyAttributes(propertyName)
[ObsoleteAttribute("CatalogContext.GetPropertyAttributes should not be used, use CatalogContext.GetProperty() and CatalogProperty.Information instead.")]
public DataSet GetPropertyAttributes(
    string propertyName
)
[ObsoleteAttribute(L"CatalogContext.GetPropertyAttributes should not be used, use CatalogContext.GetProperty() and CatalogProperty.Information instead.")]
public:
DataSet^ GetPropertyAttributes(
    String^ propertyName
)
public function GetPropertyAttributes(
    propertyName : String
) : DataSet

Parameters

Return Value

Type: System.Data..::.DataSet
A DataSet containing describing the property propertyName.

Remarks

The returned DataSet will be empty and contain a column for each property attribute. The returned DataSet will contain schema information and you can access the information associated with the property attribute using the DataColumn object. If there are no user-defined property attributes in the catalog system that match the propertyName, then the returned T:System.Data.DataSet will be nullNothingnullptra null reference (Nothing in Visual Basic). You should check for nullNothingnullptra null reference (Nothing in Visual Basic) before accessing the dataset.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

GetPropertyAttributes Overload

Microsoft.CommerceServer.Catalog Namespace