Share via


IFileExtensionRegistryService2.AddFileName(String, IContentType) Method

Definition

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.

Applies to