Share via


SfcInstance<K,T> Class

Definition

The generic base class for all Sfc object types in a domain.

public abstract class SfcInstance<K,T> : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance where K : SfcKey where T : SfcInstance, new()
type SfcInstance<'K, 'T (requires 'K :> SfcKey and 'T :> SfcInstance and 'T : (new : unit -> 'T))> = class
    inherit SfcInstance
Public MustInherit Class SfcInstance(Of K, T)
Inherits SfcInstance

Type Parameters

K

The type of the key for the instance class.

T

The type of the instance class.

Inheritance
SfcInstance<K,T>
Derived

Constructors

SfcInstance<K,T>()

Properties

AbstractIdentityKey (Inherited from SfcInstance)
IdentityKey
KeyChain

Returns the identity path of the object

(Inherited from SfcInstance)
Metadata (Inherited from SfcInstance)
Parent

Parent is not something that is kept local, it is implied from the keychain The concept of a parent is really about the hiearchy up and under the root if we only do this via parents then we will not be able to instantiate objects with only lightweight SfcKeyChain sets

Setting the parent is therefor a helper operation to set a keychain

(Inherited from SfcInstance)
Properties (Inherited from SfcInstance)
PropertyStorageProvider

This property returns the default implementation of SFC for ISfcPropertyStorageProvider interface, it can be overriden in the child classes to return another storage provider (i.e. flat properties list)

(Inherited from SfcInstance)
State (Inherited from SfcInstance)
Urn

Create a new Urn string on each request and return it.

(Inherited from SfcInstance)

Methods

AlterImpl() (Inherited from SfcInstance)
CheckObjectCreated()

To be called from domain for when an API requires the object to be Created Stronger than CheckObjectState

(Inherited from SfcInstance)
CheckObjectState()

To be called from domain for any access to the object

(Inherited from SfcInstance)
CreateIdentityKey()

Wrapper for our strongly-typed version. The non-generic SfcInstance base needs this.

CreateImpl() (Inherited from SfcInstance)
CreateKey()

Derived classes must implement this to create a key for a class instance from its properties.

Discover(ISfcDependencyDiscoveryObjectSink) (Inherited from SfcInstance)
DropImpl() (Inherited from SfcInstance)
GetChildCollection(String)

Get the child collection in this instance for the given element name string.

(Inherited from SfcInstance)
GetDomain() (Inherited from SfcInstance)
GetObjectFactory()
GetPropertySet() (Inherited from SfcInstance)
GetTypeMetadata()

Internal static class type metadata access. Usually called from the domain root instance via switch. To customize a type's TypeMetadata, skip calling this method and return your own SfcTypeMetadata-derived object for the class.

GetTypeMetadataImpl()

Internal instance class type metadata access. This returns the default static implementation of a type's SfcTypeMetadata. To customize a type's TypeMetadata, override this method in the derived type class to point to your own SfcTypeMetadata-derived object singleton for that class.

InitializeUIPropertyState()

Overridable from the child objects who care about initializing their states (dynamic metadata which is currently the ".Enabled" property)

(Inherited from SfcInstance)
MarkForDropImpl(Boolean) (Inherited from SfcInstance)
MarkRootAsConnected() (Inherited from SfcInstance)
MoveImpl(SfcInstance) (Inherited from SfcInstance)
OnPropertyMetadataChanges(SfcPropertyMetadataChangedEventArgs) (Inherited from SfcInstance)
OnPropertyValueChanges(PropertyChangedEventArgs) (Inherited from SfcInstance)
PostAlter(Object) (Inherited from SfcInstance)
PostCreate(Object) (Inherited from SfcInstance)
PostDrop(Object) (Inherited from SfcInstance)
PostMove(Object) (Inherited from SfcInstance)
PostRename(Object) (Inherited from SfcInstance)
Refresh()

refreshes the object's properties by reading them from the server

(Inherited from SfcInstance)
RenameImpl(SfcKey) (Inherited from SfcInstance)
ResetKey() (Inherited from SfcInstance)
Serialize(XmlWriter) (Inherited from SfcInstance)
ToString() (Inherited from SfcInstance)
UpdateUIPropertyState() (Inherited from SfcInstance)
Validate()

Basic child object's validation

(Inherited from SfcInstance)

Events

propertyChanged (Inherited from SfcInstance)
PropertyChanged (Inherited from SfcInstance)
propertyMetadataChanged (Inherited from SfcInstance)
PropertyMetadataChanged (Inherited from SfcInstance)

Applies to