다음을 통해 공유


PropertySettingsHelper.SetValues Method

Definition

Overloads

SetValues(IPropertySettings, Object, BindingFlags, Func<String,String>)

SetValues using Reflection API

SetValues(IPropertySettings, Object, PropertyInfo[], Func<String,String>)

SetValues using Reflection API

SetValues(IPropertySettings, Object, BindingFlags, Func<String,String>)

SetValues using Reflection API

public static void SetValues (this Microsoft.VisualStudio.Workspace.IPropertySettings settings, object source, System.Reflection.BindingFlags bindingAttr = System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public, Func<string,string> propertyNameConverter = default);
public static void SetValues (this Microsoft.VisualStudio.Workspace.IPropertySettings settings, object source, System.Reflection.BindingFlags bindingAttr = System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public, Func<string,string>? propertyNameConverter = default);
static member SetValues : Microsoft.VisualStudio.Workspace.IPropertySettings * obj * System.Reflection.BindingFlags * Func<string, string> -> unit
<Extension()>
Public Sub SetValues (settings As IPropertySettings, source As Object, Optional bindingAttr As BindingFlags = System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public, Optional propertyNameConverter As Func(Of String, String) = Nothing)

Parameters

settings
IPropertySettings

The setting instance

source
Object

Source object to get values

bindingAttr
BindingFlags

Binding flags of target

propertyNameConverter
Func<String,String>

An optional property name converter

Applies to

SetValues(IPropertySettings, Object, PropertyInfo[], Func<String,String>)

SetValues using Reflection API

public static void SetValues (this Microsoft.VisualStudio.Workspace.IPropertySettings settings, object source, System.Reflection.PropertyInfo[] properties, Func<string,string> propertyNameConverter = default);
public static void SetValues (this Microsoft.VisualStudio.Workspace.IPropertySettings settings, object source, System.Reflection.PropertyInfo[] properties, Func<string,string>? propertyNameConverter = default);
static member SetValues : Microsoft.VisualStudio.Workspace.IPropertySettings * obj * System.Reflection.PropertyInfo[] * Func<string, string> -> unit
<Extension()>
Public Sub SetValues (settings As IPropertySettings, source As Object, properties As PropertyInfo(), Optional propertyNameConverter As Func(Of String, String) = Nothing)

Parameters

settings
IPropertySettings

The setting instance

source
Object

Source object to get values

properties
PropertyInfo[]

List of property infos to populate

propertyNameConverter
Func<String,String>

An optional property name converter

Applies to