PassedInXmlPropertyCollectionTryGetAsInt32 Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Gets a property value as an Int32.

Namespace: ContentStudio.Document.Subscription.EventHandler
Assembly: CSSubscriptionEventHandler (in CSSubscriptionEventHandler.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public bool TryGetAsInt32(
	string propertyName,
	int defaultValue,
	out int result
)

Parameters

propertyName
Type: SystemString
Name of the property.
defaultValue
Type: SystemInt32
The default value to use if the property cannot be retrieved as an Int32.
result
Type: SystemInt32
When this method returns this parameter contains the resulting value if data was read successfully; otherwise, defaultValue. This parameter is passed uninitialized.

Return Value

Type: Boolean
the property value if the propertyName exists and can be converted to an Int32; otherwise, defaultValue.
See Also

Reference