Aracılığıyla paylaş


AutomationInteropProvider.AppendRuntimeId Alan

Tanım

UI Otomasyonu sağlayıcısı GetRuntimeId()tarafından öğesine geçirilen dizinin ilk öğesi olarak döndürildiğinde kimliğin kısmi olduğunu ve temel sağlayıcı tarafından sağlanan kimliğe eklenmesi gerektiğini gösteren bir değer içerir.

public: int AppendRuntimeId = 3;
public const int AppendRuntimeId = 3;
val mutable AppendRuntimeId : int
Public Const AppendRuntimeId As Integer  = 3

Alan Değeri

Value = 3
Int32

Örnekler

Aşağıdaki örnek, bir liste öğesi için uygulamasıdır IRawElementProviderFragment.GetRuntimeId .

/// <summary>
/// Gets the runtime identifier of the UI Automation element.
/// </summary>
/// <remarks>
/// myID is a unique identifier for the item within this instance of the list.
/// </remarks>
public int[] GetRuntimeId()
{
    return new int[] { AutomationInteropProvider.AppendRuntimeId, myID };
}
''' <summary>
''' Gets the runtime identifier of the UI Automation element.
''' </summary>
''' <remarks>
''' myID is a unique identifier for the item within this instance of the list.
''' </remarks>
Public Function GetRuntimeId() As Integer() _
    Implements IRawElementProviderFragment.GetRuntimeId

    Return New Integer() {AutomationInteropProvider.AppendRuntimeId, myID}

End Function 'GetRuntimeId

Açıklamalar

Bu alan genellikle doğrudan bir pencerede barındırılmayan bir parçadaki öğeler için uygulamasında GetRuntimeId kullanılır.

Şunlara uygulanır