Indicates if metadata can be edited.
[Visual Basic 6.0] Property CanEditMetadata As Boolean
[Visual Basic .NET] Public ReadOnly Property CanEditMetadata As Boolean
[C#] public bool CanEditMetadata {get;}
[Java] public boolean isCanEditMetadata() throws IOException, AutomationException
[C++]
HRESULT get_CanEditMetadata(
VARIANT_BOOL* pCanEdit
);
Parameters
pCanEdit [out, retval]
pCanEdit is a parameter of type VARIANT_BOOL
This property is available to those objects that support metadata
'The code below checks the CanEditMetadata property for the selected item in the 'Catalog Tree view. Changing the general properties of the selected item to "Read-Only", 'available from the operating system, will also change the CanEditMetadata property.
'Copy and paste the code below into a VB editor, select an item from the
'Catalog Tree view, and run. Make sure the metadata is supported for the selected item. 'Note: Connections do not support metadata.
Dim pGxApp As IGxApplication
Dim pGxObj As IGxObject
Dim pMD As IMetadata
Dim pPS As IPropertySet
Dim pMetaEdit As IMetaDataEdit
Set pGxApp = Application
Set pGxObj = pGxApp.SelectedObject
Set pMD = pGxObj
Set pPS = pMD.metadata
Set pMetaEdit = pGxObj
bln = pMetaEdit.CanEditMetadata
MsgBox bln