SetPropertyIfNotEmpty(ISerializationInfo,String,String) Method
See Also 
SourceCode.Workflow.Design.Common.Extensions Namespace > SerializationInfoExtensions Class > SetPropertyIfNotEmpty Method : SetPropertyIfNotEmpty(ISerializationInfo,String,String) Method



content
The content.
name
The name.
field
The field.

Glossary Item Box

Sets the property if not empty.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Sub SetPropertyIfNotEmpty( _
   ByVal content As ISerializationInfo, _
   ByVal name As String, _
   ByVal field As String _
) 
Visual Basic (Usage)Copy Code
Dim content As ISerializationInfo
Dim name As String
Dim field As String
 
SerializationInfoExtensions.SetPropertyIfNotEmpty(content, name, field)
C# 
[Extension()]
public static void SetPropertyIfNotEmpty( 
   ISerializationInfo content,
   string name,
   string field
)
C++/CLI 
[Extension()]
public:
static void SetPropertyIfNotEmpty( 
   ISerializationInfo^ content,
   String^ name,
   String^ field
) 

Parameters

content
The content.
name
The name.
field
The field.

Requirements

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

See Also