ExtendedProperties.IndexOf - метод (Guid)
Обновлен: Ноябрь 2007
Returns the index of a specific ExtendedProperty object within an ExtendedProperties collection, based on the globally unique identifier (GUID) for the ExtendedProperty object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Function IndexOf ( _
id As Guid _
) As Integer
'Применение
Dim instance As ExtendedProperties
Dim id As Guid
Dim returnValue As Integer
returnValue = instance.IndexOf(id)
public int IndexOf(
Guid id
)
public:
int IndexOf(
Guid id
)
public int IndexOf(
Guid id
)
public function IndexOf(
id : Guid
) : int
Параметры
- id
Тип: System.Guid
The Guid of the ExtendedProperty object to check for.
Возвращаемое значение
Тип: System.Int32
Returns the index of the ExtendedProperty object within an ExtendedProperties collection.
Заметки
If a Guid is passed in for an ExtendedProperty object that does not exist in the ExtendedProperties collection, this method returns -1.
Примеры
This C# example finds the index for a particular ExtendedProperty object that has a Guid assigned to the variable, theGuid, and that exists in a Stroke object, theStroke.
int theIndex = theStroke.ExtendedProperties.IndexOf(theGUID);
This Microsoft® Visual Basic® .NET example finds the index for a particular ExtendedProperty object that has a Guid assigned to the variable, theGuid, and that exists in a Stroke object, theStroke.
Dim theIndex As Integer = theStroke.ExtendedProperties.IndexOf(theGUID)
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0