ExtensionMethodsGetInt32 Method

Definition

Namespace: Centralpoint.Web
Assembly: Centralpoint.Web (in Centralpoint.Web.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static int GetInt32(
	this CpCollection collection,
	string id,
	int defaultValue = 0
)

Parameters

collection  CpCollection
 
id  String
 
defaultValue  Int32  (Optional)
 

Return Value

Int32

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CpCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also