Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Shared Sub SetPropertyIfTrue( _ ByVal content As ISerializationInfo, _ ByVal name As String, _ ByVal field As Boolean _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim content As ISerializationInfo Dim name As String Dim field As Boolean SerializationInfoExtensions.SetPropertyIfTrue(content, name, field) |
C# | |
---|---|
[Extension()] public static void SetPropertyIfTrue( ISerializationInfo content, string name, bool field ) |
C++/CLI | |
---|---|
[Extension()] public: static void SetPropertyIfTrue( ISerializationInfo^ content, String^ name, bool field ) |
Parameters
- content
- The content.
- name
- The name.
- field
- if set to
true
[field].
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2