Compartir a través de


PrivateType.SetStaticArrayElement (Método) (String, Object, array<Int32 )

Establece un elemento de matriz estático contenido en el tipo ajustado.

Espacio de nombres:  Microsoft.VisualStudio.TestTools.UnitTesting
Ensamblado:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (en Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Sintaxis

'Declaración
Public Sub SetStaticArrayElement ( _
    name As String, _
    value As Object, _
    ParamArray indices As Integer() _
)
public void SetStaticArrayElement(
    string name,
    Object value,
    params int[] indices
)
public:
void SetStaticArrayElement(
    String^ name, 
    Object^ value, 
    ... array<int>^ indices
)
member SetStaticArrayElement : 
        name:string * 
        value:Object * 
        indices:int[] -> unit 
public function SetStaticArrayElement(
    name : String, 
    value : Object, 
    ... indices : int[]
)

Parámetros

  • value
    Tipo: System.Object
    El valor para establecer el elemento identificado por indices.
  • indices
    Tipo: array<System.Int32[]
    Una matriz de subíndices para identificar el elemento que se establece.

Seguridad de .NET Framework

Vea también

Referencia

PrivateType Clase

SetStaticArrayElement (Sobrecarga)

Microsoft.VisualStudio.TestTools.UnitTesting (Espacio de nombres)