IVsWCFMetadataStorageProvider Arabirim
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Proje sisteminde Windows Communication Foundation (WCF) hizmeti meta verilerini kaydetmek için bir arabirim sağlar.
public interface class IVsWCFMetadataStorageProvider
public interface class IVsWCFMetadataStorageProvider
__interface IVsWCFMetadataStorageProvider
[System.Runtime.InteropServices.Guid("F71D2B05-680F-423B-B00F-52A2944AC45C")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsWCFMetadataStorageProvider
[<System.Runtime.InteropServices.Guid("F71D2B05-680F-423B-B00F-52A2944AC45C")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsWCFMetadataStorageProvider = interface
Public Interface IVsWCFMetadataStorageProvider
- Öznitelikler
Örnekler
Aşağıdaki örnek, IVsWCFMetadataStorageProvider bir PROJENIN WCF hizmeti başvurularını destekleyip desteklemediğini anlamak için arabirimini kullanır.
/// Helper method to determine if WCF ServiceReferences are
/// supported by the given hierarchy.
private static bool
ServiceReferencesSupported(IVsWCFReferenceManagerFactory factory,
IVsHierarchy hierarchy)
{
if (hierarchy != null)
{
// Try to see if Reference Manager Factory supports it.
if
(!Convert.ToBoolean(factory.IsReferenceManagerSupported(hierarchy)))
{
return false;
}
/// If factory supports, then ask Hierarchy. They both need to
/// support it.
if ((hierarchy as IVsWCFMetadataStorageProvider) != null)
{
try
{
object objIsServiceReferenceSupported;
ErrorHandler.ThrowOnFailure(hierarchy.GetProperty
(Microsoft.VisualStudio.VSConstants.VSITEMID_ROOT,
(int)__VSHPROPID3.VSHPROPID_ServiceReferenceSupported,
out objIsServiceReferenceSupported));
if (objIsServiceReferenceSupported != null &&
objIsServiceReferenceSupported is bool)
{
return (bool)objIsServiceReferenceSupported;
}
}
catch (NotImplementedException)
{
// If the property isn't implemented in the current
// project system, then we know that
// service references aren't supported.
}
}
}
return false;
}
Açıklamalar
Proje sistemleri bu arabirimi uygulamalıdır. Bir hizmet başvuru grubunu kaydetmek veya projede var olan depositeleri benzemek üzere yeni bir depolama oluşturmak için bu arabirimi çağırın.
Proje sisteminin meta verilerini depolamak için doğru dizin yapısını belirlemesi gerekir.
Yöntemler
| AdviseWCFMetadataStorageProviderEvents(IVsWCFMetadataStorageProviderEvents, UInt32) |
Meta veri depolama sağlayıcısı olay bildirimi için çağrıyı kaydeder. |
| CreateStorage(String, String, IVsWCFMetadataStorage, StorageNameValidationState) |
Yeni bir Windows Communication Foundation (WCF) meta veri depolaması oluşturur. |
| GetStorageFromMapFile(String) |
. Svcmap dosyasının tam yolunu temel alarak bir Windows Communication Foundation (WCF) meta veri depolaması döndürür. |
| GetStorages() |
Bir projedeki Windows Communication Foundation (WCF) meta veri depolarını numaralandırır. |
| IsValidNewReferenceName(String, String, SByte, StorageNameValidationState, String) |
Windows Communication Foundation (WCF) hizmet başvurusunun adının benzersiz olup olmadığını belirleyen bir değer döndürür. |
| MakeValidReferenceName(String, String, String, String) |
Windows Communication Foundation (WCF) hizmet başvurusu için benzersiz bir ad ve ad alanı döndürür. |
| UnadviseWCFMetadataStorageProviderEvents(UInt32) |
Meta veri depolama sağlayıcısı olay bildiriminin kaydını iptal eder. |