IFileExtensionRegistryService2.AddFileName(String, IContentType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a new file name to the registry.
public:
void AddFileName(System::String ^ name, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public:
void AddFileName(Platform::String ^ name, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
void AddFileName(std::wstring const & name, Microsoft::VisualStudio::Utilities::IContentType const & contentType);
public void AddFileName (string name, Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member AddFileName : string * Microsoft.VisualStudio.Utilities.IContentType -> unit
Public Sub AddFileName (name As String, contentType As IContentType)
Parameters
- name
- String
The file name (the period is optional).
- contentType
- IContentType
The content type for the file name.
Exceptions
name
is already present in the registry.