Determines whether a property is null.
Namespace: DotNetNuke.CommonAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static void PropertyNotNull<T>(
T item,
string propertyName
)
where T : class
|
Visual Basic |
---|
Public Shared Sub PropertyNotNull(Of T As Class) (
item As T,
propertyName As String
) |
Parameters
- item
- Type: T
The object to test.
- propertyName
- Type: System..::..String
Name of the property.
Type Parameters
- T
- typeparamTM:DotNetNuke.Common.Requires.PropertyNotNull``1(``0,System.String)
Exceptions
See Also