IFileExtensionRegistryService2.AddFileName(String, IContentType) 方法

定义

将新文件名添加到注册表。

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)

参数

name
String

句点 (句点是可选) 。

contentType
IContentType

文件名的内容类型。

例外

已存在于注册表中。

适用于