Table of Contents

Enum VisibilityKind

Namespace
NMF.Interop.Legacy.Cmof
Assembly
NMF.UMLInterop.dll

VisibilityKind is an enumeration of the following literal values:

  • public

  • private

  • protected

  • package

[TypeConverter(typeof(VisibilityKindConverter))]
[ModelRepresentationClass("http://schema.omg.org/spec/MOF/2.0/cmof.xml#//VisibilityKind")]
public enum VisibilityKind

Fields

Package = 3

A package element is owned by a namespace that is not a package, and is visible to elements that are in the same package as its owning namespace. Only named elements that are not owned by packages can be marked as having package visibility. Any element marked as having package visibility is visible to all elements within the nearest enclosing package (given that other owning elements have proper visibility). Outside the nearest enclosing package, an element marked as having package visibility is not visible.

Private = 1

A private element is only visible inside the namespace that owns it.

Protected = 2

A protected element is visible to elements that have a generalization relationship to the namespace that owns it.

Public = 0

A public element is visible to all elements that can access the contents of the namespace that owns it.