ModelItemExtensions.GetUniqueName Method (ModelItemCollection, String, Func<ModelItem, String>)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Retrieves the unique name of the item, using the specified collection, default prefix, and name getter.
Namespace: System.Activities.Design.ModelTree
Assembly: System.Activities.Design (in System.Activities.Design.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetUniqueName ( _
collection As ModelItemCollection, _
nameDefaultPrefix As String, _
nameGetter As Func(Of ModelItem, String) _
) As String
'Usage
Dim collection As ModelItemCollection
Dim nameDefaultPrefix As String
Dim nameGetter As Func(Of ModelItem, String)
Dim returnValue As String
returnValue = collection.GetUniqueName(nameDefaultPrefix, _
nameGetter)
public static string GetUniqueName(
this ModelItemCollection collection,
string nameDefaultPrefix,
Func<ModelItem, string> nameGetter
)
[ExtensionAttribute]
public:
static String^ GetUniqueName(
ModelItemCollection^ collection,
String^ nameDefaultPrefix,
Func<ModelItem^, String^>^ nameGetter
)
public static function GetUniqueName(
collection : ModelItemCollection,
nameDefaultPrefix : String,
nameGetter : Func<ModelItem, String>
) : String
static member GetUniqueName :
collection:ModelItemCollection *
nameDefaultPrefix:string *
nameGetter:Func<ModelItem, string> -> string
Parameters
- collection
Type: System.Activities.Design.Model.ModelItemCollection
The collection containing the item.
- nameDefaultPrefix
Type: System.String
The default name prefix of the item.
- nameGetter
Type: System.Func<ModelItem, String>
The name getter.
Return Value
Type: System.String
Returns a String containing the unique name. .
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ModelItemCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.NET Framework Security
- 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.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4