Compartir a través de


SimpleMonikerResolver Class

Definition

A Moniker Resolver that resolves simple string references when the model is serialized usign default xml serialization.

public ref class SimpleMonikerResolver abstract : IDisposable, Microsoft::VisualStudio::Modeling::IMonikerResolver
public abstract class SimpleMonikerResolver : IDisposable, Microsoft.VisualStudio.Modeling.IMonikerResolver
type SimpleMonikerResolver = class
    interface IMonikerResolver
    interface IDisposable
Public MustInherit Class SimpleMonikerResolver
Implements IDisposable, IMonikerResolver
Inheritance
SimpleMonikerResolver
Derived
Implements

Constructors

SimpleMonikerResolver(Store)

Constructor

Properties

IsDeserializing

Returns whether the moniker is being currently used for deserialization

IsDisposed

Tells if this moniker resolver has been disposed.

SerializationContext
Obsolete.

Gets or Sets the current serialization context.

UnresolvedMonikerExceptionMessage

Error message for UnresolvedMonikerException.

Methods

AddNewElement(ModelElement)

Add a new element during a deserialization transaction.

AddToLookupTable(String, ModelElement)

Derived classes can call this method to add extra keys to the moniker lookup table used to resolve monikers.

CalculateQualifiedName(ModelElement)

Calculate the fully qualified monikerized string of the given ModelElement.

CanBeMonikerized(DomainClassInfo)

Tells if a DomainClass can be monikerized or not.

CreateMoniker(ModelElement)

Not implemented by the SimpleMonikerResolver. Default Xml serialization creates the Moniker on the reference relationship class.

CreateMonikerForToken(Object)

Not implemented by the SimpleMonikerResolver. Default Xml serialization creates the Moniker on the reference relationship class.

DeserializationComplete()

This method is called when serialization is complete or aborted. Derived classes should perform their own cleanup and then call this base method.

Dispose()

Dispose unsuscribes from DeserializationBeginning and DeserializationEnding

Dispose(Boolean)

Dispose this moniker resolver.

Finalize()

Finalizer

IsFullyQualified(String)

Is the input string a fully qualified reference, as understood by the SimpleMonikerResolver.

OnAmbiguousMoniker(SerializationContext, String, ModelElement, ModelElement)

Called when two new elements are giving the same moniker, which will cause ambiguity during moniker resolution. Note: the base implementation does nothing.

OnMonikerResolvedToDuplicateLink(SerializationResult, Moniker)

Called when resolving a moniker causes a duplicate link to be created. The base implementation deletes the moniker as well as the element link.

OnStoreDisposing(Object, EventArgs)

Event callback on store disposing.

OnTopLevelTransactionBeginning(Transaction)

Called when the moniker resolver starts to moniter a new top-level transaction. Base implementation does nothing.

OnTransactionRollback(Object, TransactionRollbackEventArgs)

Do some cleanup if the serialization transaction is rolled back

OnUnresolvedMoniker(SerializationResult, Moniker)

Called at the end of synchronization when they're unresolved monikers. Base implementation doesn't do nothing.

ProcessAddedElement(ModelElement)

This method is called when an added model element is being processed at the end of deserialization transaction.

Reset()

Re-initialises the moniker resolver to its starting state

ResolveMoniker(Moniker)

Resolves moniker to one element, moniker was created during Xml deserialization

Applies to