PassedInXmlPropertyCollectionGetAsInt32 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 int GetAsInt32(
	string propertyName,
	int defaultValue
)

Parameters

propertyName
Type: SystemString
Name of the property.
defaultValue
Type: SystemInt32
A value to return if the property does not exist.

Return Value

Type: Int32
the property value if the propertyName exists; otherwise, defaultValue.
Exceptions

See Also

Reference