Aracılığıyla paylaş


ITextTemplatingEngineHost.StandardAssemblyReferences Özellik

Derleme yapılan başvuruların bir listesini alır.

Ad alanı:  Microsoft.VisualStudio.TextTemplating
Derleme:  Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property StandardAssemblyReferences As IList(Of String)
IList<string> StandardAssemblyReferences { get; }
property IList<String^>^ StandardAssemblyReferences {
    IList<String^>^ get ();
}
abstract StandardAssemblyReferences : IList<string>
function get StandardAssemblyReferences () : IList<String>

Özellik Değeri

Tür: System.Collections.Generic.IList<String>
Bir IList , derleme adlarını içerir.

Notlar

Bir ana bilgisayar tarafından oluşturulan dönüştürme sınıf başvurulacak standart derlemeler belirtmek izin verir (örneğin, System.dll).Derler ve oluşturulan dönüştürme sınıf yürütür, bu başvuruların motorunu kullanır.

Örnekler

Aşağıdaki kod örneği, özel bir ana bilgisayar için olası uygulama gösterir.Bu kod örneği, daha büyük bir örnek bir parçasıdır.Tam bir örnek için, bkz. İzlenecek yol: özel metin şablonu ana oluşturma.

public IList<string> StandardAssemblyReferences
{
    get
    {
        return new string[]
        {
            //if this host searches standard paths and the GAC
            //we can specify the assembly name like this
            //---------------------------------------------------------
            //"System"

            //because this host only resolves assemblies from the 
            //fully qualified path and name of the assembly
            //this is a quick way to get the code to give us the
            //fully qualified path and name of the System assembly
            //---------------------------------------------------------
            typeof(System.Uri).Assembly.Location
        };
    }
}
Public ReadOnly Property StandardAssemblyReferences() As IList(Of String) Implements Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost.StandardAssemblyReferences
    Get
        'if this host searches standard paths and the GAC
        'we can specify the assembly name like this
        '---------------------------------------------------------
        'Return New String() {"System"}

        'because this host only resolves assemblies from the 
        'fully qualified path and name of the assembly
        'this is a quick way to get the code to give us the
        'fully qualified path and name of the System assembly
        '---------------------------------------------------------
        Return New String() {(New System.UriBuilder()).GetType().Assembly.Location}
    End Get
End Property

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ITextTemplatingEngineHost Arabirim

Microsoft.VisualStudio.TextTemplating Ad Alanı

Diğer Kaynaklar

İzlenecek yol: özel metin şablonu ana oluşturma

Kod oluşturma ve T4 metin şablonları