Partager via


UIObject.Remove Method (String)

Removes the specified UI object from the descendent objects in this UI object.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

'Declaration
Public Function Remove ( _
    objectId As String _
) As Boolean
public bool Remove(
    string objectId
)
public:
bool Remove(
    String^ objectId
)
member Remove : 
        objectId:string -> bool
public function Remove(
    objectId : String
) : boolean

Parameters

  • objectId
    Type: String

    A UI object ID.

Return Value

Type: Boolean
true if the specified object was removed; otherwise, false.

.NET Framework Security

See Also

Reference

UIObject Class

Remove Overload

Microsoft.VisualStudio.TestTools.UITest.Common.UIMap Namespace