Constable Authorization Engine 2.0 BETA

DesignHelper.GenerateUniqueNamedObjectId Method (NamedObjectCollectionBase, String)

[This is preliminary documentation and subject to change.]

Generates an Id that is guaranteed to be unique within the collection.

[Visual Basic]
Overloads Public Shared Function GenerateUniqueNamedObjectId( _
   ByVal collection As NamedObjectCollectionBase, _
   ByVal baseId As String _
) As String
[C#]
public static string GenerateUniqueNamedObjectId(
   NamedObjectCollectionBase collection,
   string baseId
);

Parameters

collection
The collection in which the Id should be unique.
baseId
The base Id to form a prefix to the generated Id.

Return Value

Returns an Id that is guaranteed to be unique within the collection.

Remarks

The method appends a numeric sufix to the baseId parameter that will make the resulting Id unique within the collection.

See Also

DesignHelper Class | LaMarvin.Constable.Design Namespace | DesignHelper.GenerateUniqueNamedObjectId Overload List