IsObjectInScope(PersistableObject) Method
See Also 
SourceCode.Framework Namespace > PersistableObject Class > IsObjectInScope Method : IsObjectInScope(PersistableObject) Method



item
Original item instance to evaluate.

Glossary Item Box

When a cloning context exists, a lookup will be done to determine if the item or its ancestors are in scope.

Syntax

Visual Basic (Declaration) 
Protected Overloads Function IsObjectInScope( _
   ByVal item As PersistableObject _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PersistableObject
Dim item As PersistableObject
Dim value As Boolean
 
value = instance.IsObjectInScope(item)
C# 
protected bool IsObjectInScope( 
   PersistableObject item
)
C++/CLI 
protected:
bool IsObjectInScope( 
   PersistableObject^ item
) 

Parameters

item
Original item instance to evaluate.

Return Value

Returns true if the object or ancestors are in scope.

Remarks

The item identifier will be used to determine if the object is in scope. If the item is not in scope, it will move on to the container of item and re-evaluate the container.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also