Click or drag to resize

SubscriptionExtensionsClearSubscriptionsT Method

Clears subscriptions for a specific property, or if one is not specified; all subscriptions to the instance.

Namespace:  Xcalibur.Extensions.MVVM.Extensions
Assembly:  Xcalibur.Extensions.MVVM (in Xcalibur.Extensions.MVVM.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void ClearSubscriptions<T>(
	this T model,
	Expression<Func<T, Object>> property,
	Nullable<Guid> ownerId = null
)
where T : ISubscribe

Parameters

model
Type: T
The model.
property
Type: System.Linq.ExpressionsExpressionFuncT, Object
The property.
ownerId (Optional)
Type: SystemNullableGuid
The owner identifier.

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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