PrivateType.SetStaticProperty Method (String, Object, array<Object[])
Sets a static property contained in the wrapped type.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.SmartDevice.UnitTestFramework (in Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub SetStaticProperty ( _
name As String, _
value As Object, _
ParamArray args As Object() _
)
'Usage
Dim instance As PrivateType
Dim name As String
Dim value As Object
Dim args As Object()
instance.SetStaticProperty(name, value, _
args)
public void SetStaticProperty(
string name,
Object value,
params Object[] args
)
public:
void SetStaticProperty(
String^ name,
Object^ value,
... array<Object^>^ args
)
public function SetStaticProperty(
name : String,
value : Object,
... args : Object[]
)
Parameters
name
Type: System.StringThe name of the static property.
value
Type: System.ObjectThe value to set the static property.
args
Type: array<System.Object[]An array that contains the arguments to pass to the member to invoke.
.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.