Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Sets an indexed 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, _
bindingFlags As BindingFlags, _
value As Object, _
parameterTypes As Type(), _
args As Object() _
)
public void SetProperty(
string name,
BindingFlags bindingFlags,
Object value,
Type[] parameterTypes,
Object[] args
)
public:
void SetProperty(
String^ name,
BindingFlags bindingFlags,
Object^ value,
array<Type^>^ parameterTypes,
array<Object^>^ args
)
member SetProperty :
name:string *
bindingFlags:BindingFlags *
value:Object *
parameterTypes:Type[] *
args:Object[] -> unit
public function SetProperty(
name : String,
bindingFlags : BindingFlags,
value : Object,
parameterTypes : Type[],
args : Object[]
)
Parameters
name
Type: StringThe name of property to invoke.
- bindingFlags
Type: BindingFlags
value
Type: ObjectThe value to set the property identified by name.
parameterTypes
Type: array<Type[]An array of Type objects that represents the number, order, and type of the parameters for the indexed property to get.
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.