ArcObjects Library Reference  (System)    

IPersistVariant Interface

Provides access to members used for storage of an object through VARIANTs.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The IPersistVariant interface should be implemented by classes which need to be persistable. This interface was specifically designed for use by programmers who donít use Visual C++, or C++ development environments.

The stream passed to the IPersistVariant interface is a specialist stream class which implements IVariantStream. Using this interface, any value type, or any COM object can be written to a stream. This stream class is internal to ArcObjects.

See the topics on implementing persistence for more details.

Members

Description
Read-only property ID The ID of the object.
Method Load Loads the object properties from the stream.
Method Save Saves the object properties to the stream.

CoClasses that implement IPersistVariant

CoClasses and Classes Description
AreaObs2525B (esriDefenseSolutions) Renders some of the 2525B areal obstacle tactical graphics (those supported in MOLE 2.0).
AreaObs2525BG (esriDefenseSolutions) Using green symbology, renders some of the 2525B areal obstacle tactical graphics (those supported in MOLE 2.0).
Areas2525B (esriDefenseSolutions) Renders some of the 2525B areal tactical graphics (those supported in MOLE 2.0).
Arrows2525B (esriDefenseSolutions) Renders three point polylines as 2525B arrow tactical graphics.
Boundaries2525B (esriDefenseSolutions) Renders polylines as 2525B boundary tactical graphics.
BracketLeaderStyle (esriDefenseSolutions) A leader style that maniplates the contents of a graphic leader to resemble a vertically aligned and bracketed collection. Graphics are sorted by HQ and echelon.
BracketLeaderStylePE (esriDefenseSolutions) A leader style that maniplates the contents of a graphic leader to resemble a vertically aligned and bracketed collection. Graphics are sorted by HQ parent/child relationship and then by echelon.
C2GMAreas2525B (esriDefenseSolutions) Renders areal tactical graphics defined under the 2525B command and control and general maneuver heading.
C2GMLines2525B (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B command and control and general maneuver heading.
C2GMPoints2525B (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B command and control and general maneuver heading.
CSSAreas2525B (esriDefenseSolutions) Renders areal tactical graphics defined under the 2525B combat service support heading.
CSSLines2525B (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B combat service support heading.
CSSPoints2525B (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B combat service support heading.
DogLegLeaderStyle (esriDefenseSolutions) A leader style that maniplates the contents of a graphic leader to resemble a vertically aligned collection using a dog leg leader line. Graphics are sorted by HQ and echelon.
DogLegLeaderStyle2 (esriDefenseSolutions) A leader style that maniplates the contents of a graphic leader to resemble a vertically aligned collection using a dog leg leader line with a dot drawn at its first point. Graphics are sorted by HQ and echelon.
DogLegLeaderStyle2PE (esriDefenseSolutions) A leader style that maniplates the contents of a graphic leader to resemble a vertically aligned collection using a dog leg leader line with a dot drawn at its first point. Graphics are sorted by HQ parent/child relationship and then by echelon.
DogLegLeaderStylePE (esriDefenseSolutions) A leader style that maniplates the contents of a graphic leader to resemble a vertically aligned collection using a dog leg leader line. Graphics are sorted by HQ parent/child relationship and then by echelon.
EchelonScaleFilter (esriDefenseSolutions) A scale filter that compares a graphic's echelon to its own echelon range to determine if the graphic should be drawn.
FEGraphicStyle (esriDefenseSolutions) Provides a set of symbols for use in depicting force element graphics on a display.
FLOT2525B (esriDefenseSolutions) Renders polylines as Forward Lines of Own Troops and related 2525B tactical graphics (those supported in MOLE 2.0).
ForceElement2525BRenderer (esriDefenseSolutions) Renders one or more features as MIL-STD 2525B compliant cached graphics, adding them to a force element display list.
ForceElementAPP6ARenderer (esriDefenseSolutions) Renders one or more features as NATO APP-6A compliant cached graphics, adding them to a force element display list.
ForceElementDisplayList (esriDefenseSolutions) Manages a collection of force element cached graphics, graphic leaders and graphic stacks.
ForceElementLayer (esriDefenseSolutions) A custom layer, bound to a feature layer, that wraps a force element display list and makes it possible to view and manipulate its cached graphic contents in an ArcGIS map display.
FSAreas2525B (esriDefenseSolutions) Renders areal tactical graphics defined under the 2525B fire support heading.
FSAreasChange1 (esriDefenseSolutions) Renders areal tactical graphics defined under the 2525B fire support heading.
FSLines2525B (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B fire support heading.
FSLinesChange1 (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B fire support heading.
FSPoints2525B (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B fire support heading.
FSPointsChange1 (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B fire support heading.
GraphicLeader (esriDefenseSolutions) A collection of leaderable cached graphics, sorted and drawn using a variety of leader styles, designed to help declutter a display.
HBarLeaderStyle (esriDefenseSolutions) A leader style that manipulates the contents of graphic leader to resemble a horizontally aligned collection, sandwiched between two horizontal lines. Graphics are sorted by HQ parent/child relationship and/or by echelon.
ImageServerLayer (esriCarto) Image server layer source and display options.
LeaderAffiliationRule (esriDefenseSolutions) A rule that permits leadering if two objects share the same, or a compatible, affiliation code.
LeaderHigherFormationRule (esriDefenseSolutions) A rule that permits leadering if two objects share the same higher formation (parent) attribute.
LeaderProximityRule (esriDefenseSolutions) A rule that permits leadering if two objects are within a specified distance of one another.
LeaderValueRule (esriDefenseSolutions) A rule that permits leadering if two objects share the same value for a specified attribute.
LineObs2525B (esriDefenseSolutions) Renders some of the 2525B linear obstacle tactical graphics (those supported in MOLE 2.0).
LineObs2525BG (esriDefenseSolutions) Using green symbology, renders some of the 2525B linear obstacle tactical graphics (those supported in MOLE 2.0).
Lines2525B (esriDefenseSolutions) Renders some of the 2525B linear tactical graphics (those supported in MOLE 2.0).
METOCAreasChange1 (esriDefenseSolutions) Renders area tactical graphics defined under the 2525B Change 1 meteorology (METOC) heading.
METOCLines2525B (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B meteorology (METOC) heading.
METOCLinesChange1 (esriDefenseSolutions) Renders line tactical graphics defined under the 2525B Change 1 meteorology (METOC) heading.
METOCPoints2525B (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B meteorology (METOC) heading.
METOCPointsChange1 (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B Change 1 meteorology (METOC) heading.
MSAreas2525B (esriDefenseSolutions) Renders areal tactical graphics defined under the 2525B mobility and survivability heading.
MSLines2525B (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B mobility and survivability heading.
MSPoints2525B (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B mobility and survivability heading.
MultipointArrows (esriDefenseSolutions) Renders polylines as 2525B arrow tactical graphics, using the last point to define the back of the arrow head.
OtherLines2525B (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B miscellaneous/other heading.
OtherPoints2525B (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B miscellaneous/other heading.
PointObs2525B (esriDefenseSolutions) Renders some of the 2525B point obstacle tactical graphics (those supported in MOLE 2.0).
PointObs2525BG (esriDefenseSolutions) Using green symbology, renders some of the 2525B point obstacle tactical graphics (those supported in MOLE 2.0).
Points2525B (esriDefenseSolutions) Renders some of the 2525B point tactical graphics (those supported in MOLE 2.0).
StackHigherFormationRule (esriDefenseSolutions) A rule that permits stacking if two objects share the same higher formation (parent) attribute.
StackProximityRule (esriDefenseSolutions) A rule that permits stacking if two objects are within a specified distance of one another.
StackSymbolIDRule (esriDefenseSolutions) A rule that permits stacking if two objects share the same symbol ID value.
StackValueRule (esriDefenseSolutions) A rule that permits stacking if two objects share the same value for a specified attribute.
SwoopArrows (esriDefenseSolutions) Renders selected 2525B arrows using curved lines.
TacticalGraphic2525BRenderer (esriDefenseSolutions) Renders all 2525B tactical graphics.
TacticalGraphicAPP6ARenderer (esriDefenseSolutions) Renders all APP6 tactical graphics.
TacticalGraphicDisplayList (esriDefenseSolutions) Manages a collection of tactical cached graphics.
TacticalGraphicLayer (esriDefenseSolutions) A custom layer, bound to a feature layer, that wraps a tactical graphic display list and makes it possible to view and manipulate its cached graphic contents in an ArcGIS map display.
TaskAreas2525B (esriDefenseSolutions) Renders areal tactical graphics defined under the 2525B task heading.
TaskLines2525B (esriDefenseSolutions) Renders linear tactical graphics defined under the 2525B task heading.
TaskPoints2525B (esriDefenseSolutions) Renders point tactical graphics defined under the 2525B task heading.
[Visual Basic 6.0]

Implements esriSystem.IPersistVariant

Private Property Get IPersistVariant_ID() As esriSystem.IUID
  Dim pUID As New esriSystem.UID
  pUID.Value = "." ' or a GUID
  Set IPersistVariant_ID = pUID
End Property

Private Sub IPersistVariant_Save(ByVal Stream As esriSystem.IVariantStream)
  Stream.Write m_sValue1
  Stream.Write m_sValue2
End Sub

Private Sub IPersistVariant_Load(ByVal Stream As esriSystem.IVariantStream)
  m_sValue1 = Stream.Read
  m_sValue2 = Stream.Read
End Sub