Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Sets a property for a wrapped object identified by name.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub SetProperty ( _
name As String, _
value As Object, _
ParamArray args As Object() _
)
public void SetProperty(
string name,
Object value,
params Object[] args
)
public:
void SetProperty(
String^ name,
Object^ value,
... array<Object^>^ args
)
member SetProperty :
name:string *
value:Object *
args:Object[] -> unit
public function SetProperty(
name : String,
value : Object,
... args : Object[]
)
Parameters
name
Type: StringThe name of property to invoke.
value
Type: ObjectThe value to set the property identified by name.
args
Type: array<Object[]An array that contains the arguments to pass to the property to invoke.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | name is nulla null reference (Nothing in Visual Basic) or empty. |
.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.