GetBoolIfPresent Method
See Also 
SourceCode.Workflow.Design.Common.Extensions Namespace > SerializationInfoExtensions Class : GetBoolIfPresent Method



content
The content.
name
The name.

Glossary Item Box

Gets the bool if present.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function GetBoolIfPresent( _
   ByVal content As ISerializationInfo, _
   ByVal name As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim content As ISerializationInfo
Dim name As String
Dim value As Boolean
 
value = SerializationInfoExtensions.GetBoolIfPresent(content, name)
C# 
[Extension()]
public static bool GetBoolIfPresent( 
   ISerializationInfo content,
   string name
)
C++/CLI 
[Extension()]
public:
static bool GetBoolIfPresent( 
   ISerializationInfo^ content,
   String^ name
) 

Parameters

content
The content.
name
The name.

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