IUITechnologyManager.Search Yöntem
Bu API, .NET Framework altyapısını destekler ve doğrudan kodunuzdan kullanılmaya yönelik değildir.
Sağlanan sorgu kimliği tanımlama bilgisi koşul eşleşen ana öğe içinde bir öğe arar.
Ad alanı: Microsoft.VisualStudio.TestTools.UITest.Extension
Derleme: Microsoft.VisualStudio.TestTools.UITest.Extension (Microsoft.VisualStudio.TestTools.UITest.Extension.dll içinde)
Sözdizimi
'Bildirim
Function Search ( _
parsedQueryIdCookie As Object, _
parentElement As IUITechnologyElement, _
maxDepth As Integer _
) As Object()
Object[] Search(
Object parsedQueryIdCookie,
IUITechnologyElement parentElement,
int maxDepth
)
array<Object^>^ Search(
Object^ parsedQueryIdCookie,
IUITechnologyElement^ parentElement,
int maxDepth
)
abstract Search :
parsedQueryIdCookie:Object *
parentElement:IUITechnologyElement *
maxDepth:int -> Object[]
function Search(
parsedQueryIdCookie : Object,
parentElement : IUITechnologyElement,
maxDepth : int
) : Object[]
Parametreler
- parsedQueryIdCookie
Tür: System.Object
Önceden ayrıştırılmış sorgu tanımlama bilgisi.
- parentElement
Tür: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Bir IUITechnologyElement nesne.
- maxDepth
Tür: System.Int32
Bir int aramak için anahattınızı denetim hiyerarşisi içinde gösterir.
Dönüş Değeri
Tür: array<System.Object[]
Sorgu eşleşen öğeleri dizisi veya nullnull başvuru (Visual Basic'te Nothing) herhangi bir öğe bulunursa.
Özel Durumlar
Exception | Koşul |
---|---|
NotSupportedException | Bu uygulama, bu yöntemi desteklemez. |
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.