Aracılığıyla paylaş


PrivateType.SetStaticField Yöntem (String, BindingFlags, Object)

Bir static alan kaydırılan tipinde yer alan ayarlar.

Ad alanı:  Microsoft.VisualStudio.TestTools.UnitTesting
Derleme:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll içinde)

Sözdizimi

'Bildirim
Public Sub SetStaticField ( _
    name As String, _
    bindingFlags As BindingFlags, _
    value As Object _
)
public void SetStaticField(
    string name,
    BindingFlags bindingFlags,
    Object value
)
public:
void SetStaticField(
    String^ name, 
    BindingFlags bindingFlags, 
    Object^ value
)
member SetStaticField : 
        name:string * 
        bindingFlags:BindingFlags * 
        value:Object -> unit 
public function SetStaticField(
    name : String, 
    bindingFlags : BindingFlags, 
    value : Object
)

Parametreler

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

PrivateType Sınıf

SetStaticField Fazla Yük

Microsoft.VisualStudio.TestTools.UnitTesting Ad Alanı